From: Stefanos Koutsoutos Subject: stat() problems. Date: 01 Aug 2002 10:56:01 +0300 Sender: linux-gcc-owner@vger.kernel.org Message-ID: <1028188562.1091.4.camel@skt.int.local> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-gcc@vger.kernel.org Hi, I'm facing problems with stat() system call. It seems that it follows filesystem links! To be more accurate I try: struct stat buf; stat("this_is_a_link", &buf); and then: S_ISLNK( buf.st_mode ) is false! More, the mode is the same as the mode of the file it links to! I think that this is not what it supposed to be done by stat(). Any ideas?? Thanks in advance. Stefanos. -- ____________________ Stefanos Koutsoutos Developer MD5 S.A. koutsoutos@md5sa.com www.md5sa.com