X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-Authority-Analysis: v=1.0 c=1 a=C9Jm4VlufYwA:10 a=xe8BsctaAAAA:8 a=WJm6cZYL5afpTBGDfBUA:9 a=fWHEeO8tTg3ALD6frfUfA69_sdAA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10 Message-ID: <47ABD544.2010101@byu.net> Date: Thu, 07 Feb 2008 21:06:28 -0700 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, izecksohn AT yahoo DOT com Subject: Re: Function stat bug when dealing with symlinks. References: <35923 DOT 67256 DOT qm AT web50111 DOT mail DOT re2 DOT yahoo DOT com> In-Reply-To: <35923.67256.qm@web50111.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 AT byu DOT 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/