This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Function stat bug when dealing with symlinks.


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

According to Pedro Izecksohn on 2/7/2008 9:01 PM:
|   struct stat member st_mode is wrongly being set by the stat function to
| regular file instead of to symlink.

Huh?  stat is SUPPOSED to dereference symlinks.  Use lstat if you want
st_mode to report on a symlink, rather than following it.  And this is not
cygwin-specific.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHq9VD84KuGfSFAYARAkq6AJ0RK0HDjUcbPzVVa7nSTeblBZtN9wCggzl7
KKir5SYz/m1+5sd0ryiWv0s=
=p0W7
-----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]