-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Christopher Faylor on 9/30/2009 9:34 AM:
>> Is this function supposed to detect just "." or "*/."?

Both.

>   /* 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             e...@byu.net
-----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/

iEYEARECAAYFAkrDq6QACgkQ84KuGfSFAYDkEQCgt4wpQPmooB5IhJgPDI/jLJjI
ScEAoIc9OlvPD8CYUVYt6r1QABYn8tyD
=CEG6
-----END PGP SIGNATURE-----

Reply via email to