diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f796ea3d1..956c9c512 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-07-26 Corinna Vinschen + + * ntdll.h: Fix typo in comment. + * path.cc: Ditto. + 2011-07-25 Corinna Vinschen * fhandler_console.cc (fhandler_console::ioctl): Fetch console events diff --git a/winsup/cygwin/ntdll.h b/winsup/cygwin/ntdll.h index 3895c50c1..e610c6fb3 100644 --- a/winsup/cygwin/ntdll.h +++ b/winsup/cygwin/ntdll.h @@ -1345,7 +1345,7 @@ extern "C" ? prefix->Length : path->Length); return RtlEqualUnicodeString (&p, prefix, caseinsensitive); } - /* Check if sufffix is a sufffix of path. */ + /* Check if suffix is a suffix of path. */ inline BOOL NTAPI RtlEqualUnicodePathSuffix (PUNICODE_STRING path, PUNICODE_STRING suffix, diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 003c25c0e..123829de9 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -427,7 +427,7 @@ get_nt_native_path (const char *path, UNICODE_STRING& upath, bool dos) if (dos) { /* Unfortunately we can't just use transform_chars with the tfx_rev_chars - table since only leading and trainlig spaces and dots are affected. + table since only leading and trailing spaces and dots are affected. So we step to every backslash and fix surrounding dots and spaces. That makes these broken filesystems a bit slower, but, hey. */ PWCHAR cp = upath.Buffer + 7;