From cec4418796b4bf464a51896a8f8abf903d84d9e8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 4 Sep 2000 20:51:12 +0000 Subject: Move declaractions of lstat, stat, and rpl_lstat as well as the definition of lstat from cp.c to this file. --- src/copy.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/copy.h b/src/copy.h index 69a2e2e31..e5a35cd6d 100644 --- a/src/copy.h +++ b/src/copy.h @@ -130,6 +130,18 @@ struct cp_options int (*xstat) (); }; +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 + int copy PARAMS ((const char *src_path, const char *dst_path, int nonexistent_dst, const struct cp_options *options, -- cgit v1.2.3-54-g00ecf