-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks for your cleanup efforts! 20050826 is much better. All that remains is the regression from 1.5.18, where readlink(NULL, buf) set buf[0], but now it doesn't.
According to Corinna Vinschen on 8/26/2005 6:32 AM: >>Also, readlink("linktofile/x", buf) is now failing (good), but with >>ENOENT, instead of the proper ENOTDIR. > > That's not true. I just checked it again. Besides that, I wasn't > finished with realpath anyway. I narrowed down where the bug was in my previous report, and it is still buggy: $ readlink u x $ ls x* x.exe $ ls -lF x - -rwxr-xr-x 1 eblake None 13961 Mar 10 06:54 x* $ file x # See below for more on this... x: writable, executable, regular file, no read permission $ ./myreadlink u/blah 'u/blah': NULL, 2 No such file or directory You are right that the code is correctly giving ENOTDIR when the symlink isn't half-dangling (ie stat() succeeds but open() fails): $ readlink u.exe x.exe $ ./myreadlink u/blah 'u/blah': NULL, 20 Not a directory Meanwhile, it points out a bug in file(1); it needs some .exe magic to avoid misdiagnosing files when you leave off the .exe! $ file x.exe x.exe: PE executable for MS Windows (console) Intel 80386 32-bit - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDD3vX84KuGfSFAYARAqu1AKDFbrv9ZlnqDIE+s8aKNuWs7UVyYQCguPge 2W4gUJDN/2yGbiv630Cz5mA= =DyF5 -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/