www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/02/03:45:22

Date: Wed, 2 Aug 2000 10:29:18 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Laurynas Biveinis <lauras AT softhome DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: New function: lstat()
In-Reply-To: <3986F623.18444B8D@softhome.net>
Message-ID: <Pine.SUN.3.91.1000802102812.26285B-100000@is>
MIME-Version: 1.0
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

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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019