From b958bd6f2b500ae5763b687a70befad6ee9b2311 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 29 Apr 2000 10:17:42 +0000 Subject: [LSTAT_FOLLOWS_SLASHED_SYMLINK] (lstat): Define to rpl_lstat. --- src/cp.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/cp.c b/src/cp.c index 460028940..5ab4e0ffc 100644 --- a/src/cp.c +++ b/src/cp.c @@ -67,6 +67,15 @@ enum int stat (); int lstat (); +/* 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 ! LSTAT_FOLLOWS_SLASHED_SYMLINK +int rpl_lstat PARAMS((const char *, struct stat *)); +# undef lstat +# define lstat rpl_lstat +#endif + void strip_trailing_slashes (); /* Initial number of entries in each hash table entry's table of inodes. */ -- cgit v1.2.3-70-g09d2