summaryrefslogtreecommitdiff
path: root/src/copy.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-01-14 11:04:47 +0000
committerJim Meyering <jim@meyering.net>2001-01-14 11:04:47 +0000
commit30fc8c55a3019abb1f01cf3580e04af700d490d9 (patch)
tree86cba2d6fb8b24e4028c001dca7e80303fd1c353 /src/copy.h
parent98c8115e96902ed66eb4b4ad8f665247f18f5602 (diff)
downloadcoreutils-30fc8c55a3019abb1f01cf3580e04af700d490d9.tar.xz
[RENAME_TRAILING_SLASH_BUG]: Use the rename wrapper.
Diffstat (limited to 'src/copy.h')
-rw-r--r--src/copy.h11
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,