This is the mail archive of the
mailing list for the Cygwin project.
RE: cygpath -s behaviour
- From: "Watts, Simon (UK)" <swatts at northgrum-it dot eu dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Fri, 6 Sep 2002 15:28:21 +0100
- Subject: RE: cygpath -s behaviour
> 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,
> 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?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html