detect . in a/.//
Wed Sep 30 19:04:00 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
According to Christopher Faylor on 9/30/2009 9:34 AM:
>> Is this function supposed to detect just "." or "*/."?
> /* SUSv3: . and .. are not allowed as last components in various system
> calls. Don't test for backslash path separator since that's a Win32
> path following Win32 rules. */
> const char *last_comp = strrchr (dir, '\0');
Looked like a decent rewrite to me, except why did you use strrchr instead
of strchr to find the end of the string?
Don't work too hard, make some time for fun as well!
Eric Blake email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Cygwin-patches