Patch to allow trailing dots on managed mounts
Mark Paulus
mark.paulus@mci.com
Wed Dec 15 23:04:00 GMT 2004
This patch is as trivial as I could get to allow trailing
dots to be used on a managed file system.
Unfortunately, my company will not sign the waiver,
so I cannot sign up for any significant changes to
the cygwin sources. So, hopefully, this patch is
small enough to squeek under the limit, or it can be a
starting point for discussions on how to fix the original
problem.
* path.cc (path_conv::check): retain trailing dots and
spaces for managed mounts.
-------------- next part --------------
--- path.cc 3 Dec 2004 02:00:37 -0000 1.326
+++ path.cc 15 Dec 2004 22:57:25 -0000
@@ -555,6 +555,7 @@ path_conv::check (const char *src, unsig
}
/* Remove trailing dots and spaces which are ignored by Win32 function
s but
not by native NT functions. */
+ char *tmpTail = tail;
while (tail[-1] == '.' || tail[-1] == ' ')
tail--;
if (tail > path_copy + 1 && isslash (tail[-1]))
@@ -562,6 +563,7 @@ path_conv::check (const char *src, unsig
error = ENOENT;
return;
}
+ tail = tmpTail;
}
path_end = tail;
*tail = '\0';
More information about the Cygwin-patches
mailing list