summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-13 12:12:26 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-13 12:12:26 +0000
commit615d4b2cc83fb7d976d3a88ffbae2a10ba201541 (patch)
treedfae68600ec57c928c4882a58ed5991e25e898d8 /src/copy.c
parente6bcd96876db4fe6670a2b82e8d28af92f8e3acb (diff)
downloadcoreutils-615d4b2cc83fb7d976d3a88ffbae2a10ba201541.tar.xz
Adjust to backup enum rename.
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/copy.c b/src/copy.c
index 61c74c383..c2294ca82 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -507,7 +507,7 @@ same_file_ok (const char *src_path, const struct stat *src_sb,
source and destination are the same directory entry. In that
case, moving the destination file aside (in making the backup)
would also rename the source file and result in an error. */
- if (x->backup_type != none)
+ if (x->backup_type != no_backups)
{
if (!same_link)
{
@@ -854,7 +854,7 @@ copy_internal (const char *src_path, const char *dst_path,
if (command_line_arg)
{
if ( ! S_ISDIR (src_sb.st_mode)
- && x->backup_type == none
+ && x->backup_type == no_backups
&& seen_file (x->src_info, src_path, &src_sb))
{
error (0, 0, _("warning: source file %s specified more than once"),
@@ -925,7 +925,7 @@ copy_internal (const char *src_path, const char *dst_path,
a move using cp and rm.
Note that it works fine if you use --backup=numbered. */
if (command_line_arg
- && x->backup_type != numbered
+ && x->backup_type != numbered_backups
&& seen_file (x->dest_info, dst_path, &dst_sb))
{
error (0, 0,
@@ -1028,7 +1028,7 @@ copy_internal (const char *src_path, const char *dst_path,
}
}
- if (x->backup_type != none && !S_ISDIR (dst_sb.st_mode))
+ if (x->backup_type != no_backups && !S_ISDIR (dst_sb.st_mode))
{
char *tmp_backup = find_backup_file_name (dst_path,
x->backup_type);