diff options
author | Jim Meyering <jim@meyering.net> | 2000-04-29 10:17:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-04-29 10:17:42 +0000 |
commit | b958bd6f2b500ae5763b687a70befad6ee9b2311 (patch) | |
tree | 0e8d04826a4f20630bcf83a67f18d30c683e3d28 /src | |
parent | 8e3be9e25c08345485d3f29cfb4f0376038c9e09 (diff) | |
download | coreutils-b958bd6f2b500ae5763b687a70befad6ee9b2311.tar.xz |
[LSTAT_FOLLOWS_SLASHED_SYMLINK] (lstat): Define to rpl_lstat.
Diffstat (limited to 'src')
-rw-r--r-- | src/cp.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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. */ |