Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: lstat
- X-seq: zsh-workers 2785
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: zefram@xxxxxxxxxxxxxxxxx (Zefram)
- Subject: Re: lstat
- Date: Sun, 12 Jan 1997 00:34:52 +0100 (MET)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <28845.199701101500@xxxxxxxxxxxxxxxxxxxxxxx> from Zefram at "Jan 10, 97 03:00:14 pm"
Zefram wrote:
> The 3.0.3-test3 patch includes:
>
> >+ #ifdef HAVE_LSTAT
> > lstat(fn, &sbuf);
> >+ #else
> >+ stat(fn, &sbuf);
> >+ #endif
>
> but system.h says:
>
> >#ifndef HAVE_LSTAT
> ># define lstat stat
> >#endif
>
> so there is no need for that sort of conditional.
I did not notice that. This define is buggy in system.h. Some CPP's require
#define lstat(X,Y) stat(X,Y)
I'll remove those unnecessary conditionals and fix the headers.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author