Re: Function stat bug when dealing with symlinks.

2008-02-07 Thread Eric Blake
-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 repo

Function stat bug when dealing with symlinks.

2008-02-07 Thread Pedro Izecksohn
struct stat member st_mode is wrongly being set by the stat function to regular file instead of to symlink. I packed a test for download: http://www.izecksohn.com/pedro/c/statbug/statbug.tar.gz To use it: tar -xzvf statbug.tar.gz make My configuration: bash-3.2$ uname -a CYGWIN_N