diff options
author | Jim Meyering <jim@meyering.net> | 2001-01-14 11:04:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-01-14 11:04:47 +0000 |
commit | 30fc8c55a3019abb1f01cf3580e04af700d490d9 (patch) | |
tree | 86cba2d6fb8b24e4028c001dca7e80303fd1c353 | |
parent | 98c8115e96902ed66eb4b4ad8f665247f18f5602 (diff) | |
download | coreutils-30fc8c55a3019abb1f01cf3580e04af700d490d9.tar.xz |
[RENAME_TRAILING_SLASH_BUG]: Use the rename wrapper.
-rw-r--r-- | src/copy.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/copy.h b/src/copy.h index e5a35cd6d..9cc4e4cd3 100644 --- a/src/copy.h +++ b/src/copy.h @@ -142,6 +142,17 @@ int rpl_lstat PARAMS((const char *, struct stat *)); # define lstat rpl_lstat # endif +int rename (); + +/* Arrange to make rename calls go through the wrapper function + on systems with a rename function that fails for a source path + specified with a trailing slash. */ +# if RENAME_TRAILING_SLASH_BUG +int rpl_rename PARAMS((const char *, const char *)); +# undef rename +# define rename rpl_rename +# endif + int copy PARAMS ((const char *src_path, const char *dst_path, int nonexistent_dst, const struct cp_options *options, |