This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Function stat bug when dealing with symlinks.
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com, izecksohn at yahoo dot com
- Date: Thu, 07 Feb 2008 21:06:28 -0700
- Subject: Re: Function stat bug when dealing with symlinks.
- References: <35923.67256.qm@web50111.mail.re2.yahoo.com>
-----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/