diff options
author | Jim Meyering <jim@meyering.net> | 2003-02-02 17:14:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-02-02 17:14:59 +0000 |
commit | 670e4e061a9297cf3f2298a90eef4e75d6c0a914 (patch) | |
tree | 98cbda0d9ed1a6c04fcec4986ae6b191d033c87c /lib | |
parent | 2d5342fb9470f5c031656ba16dd89485a52f13e2 (diff) | |
download | coreutils-670e4e061a9297cf3f2298a90eef4e75d6c0a914.tar.xz |
(lstat) [LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftw.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |