cygpath -s behaviour
Watts, Simon (UK)
swatts@northgrum-it.eu.com
Fri Sep 6 07:32:00 GMT 2002
> DWORD len = GetShortPathName (filename, buf, MAX_PATH);
> if (len == 0 && GetLastError () == ERROR_INVALID_PARAMETER)
> {
> fprintf (stderr, "%s: cannot create short name of
> %s\n", prog_name,
> filename);
> exit (2);
> }
The above code snippet is as in the src.tar.bz2 archive for the
version of cygwin which I have.
V strange, this should work...
Check that GetShortPathName _is_ returning 0 on fail? Try
the test 'len <= 0' instead?
SAW.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list