Date: Wed, 2 Aug 2000 10:29:18 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Laurynas Biveinis cc: djgpp-workers AT delorie DOT com Subject: Re: New function: lstat() In-Reply-To: <3986F623.18444B8D@softhome.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 1 Aug 2000, Laurynas Biveinis wrote: > OK, here is reworked patch: > > - New stat.c is diffed against /dev/null > - lstat.c is diffed against old stat.c > - everything else has been left untouched. Thanks! > +int > +stat(const char *path, struct stat *statbuf) > +{ > + return lstat(path, statbuf); > +} If this is all `stat' does, then it is identical to `lstat', right? But AFAIK they should be different: if the file is a link, `lstat' brings the info about the link, not about its target. I would expect `stat' to call `lstat' after it resolves the symlinks in its argument. I also don't see any symlink-related code in (what now is) `lstat', and lstat.txh doesn't say anything about symlinks. What am I missing?