From 670e4e061a9297cf3f2298a90eef4e75d6c0a914 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 2 Feb 2003 17:14:59 +0000 Subject: (lstat) [LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat. --- lib/ftw.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') diff --git a/lib/ftw.c b/lib/ftw.c index ccbb71a05..8f2c2a81a 100644 --- a/lib/ftw.c +++ b/lib/ftw.c @@ -120,6 +120,15 @@ char *stpcpy (); extern char *xgetcwd (void); #endif +/* Arrange to make lstat calls go through the wrapper function + on systems with an lstat function that does not dereference symlinks + that are specified with a trailing slash. */ +#if ! _LIBC && ! LSTAT_FOLLOWS_SLASHED_SYMLINK +int rpl_lstat (const char *, struct stat *); +# undef lstat +# define lstat(Name, Stat_buf) rpl_lstat(Name, Stat_buf) +#endif + #ifndef __set_errno # define __set_errno(Val) errno = (Val) #endif -- cgit v1.2.3-70-g09d2