Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: lstat



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