summaryrefslogtreecommitdiff
path: root/src/mv.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-05-10 12:19:30 +0000
committerJim Meyering <jim@meyering.net>1998-05-10 12:19:30 +0000
commit50e17793c88b9c12658261ad4f497b3497812cb5 (patch)
tree68ae45a53f5b6e7712d22622193635d343056536 /src/mv.c
parent8a0a50e6b014c64fdd9eb7b9a9a162be83529e3d (diff)
downloadcoreutils-50e17793c88b9c12658261ad4f497b3497812cb5.tar.xz
(cp_option_init): Initialize new members.
Diffstat (limited to 'src/mv.c')
-rw-r--r--src/mv.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mv.c b/src/mv.c
index 48443d7e8..1c4a9fde2 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -124,15 +124,20 @@ cp_option_init (struct cp_options *x)
x->copy_as_regular = 0; /* FIXME: maybe make this an option */
x->dereference = 0;
x->force = 0;
+ x->failed_unlink_is_fatal = 1;
x->hard_link = 0;
x->interactive = 0;
x->myeuid = geteuid ();
x->one_file_system = 0;
- x->preserve = 1;
+ x->preserve_owner_and_group = 1;
+ x->preserve_chmod_bits = 1;
+ x->preserve_timestamps = 1;
x->require_preserve = 0; /* FIXME: maybe make this an option */
x->recursive = 1;
x->sparse_mode = SPARSE_AUTO; /* FIXME: maybe make this an option */
x->symbolic_link = 0;
+ x->set_mode = 0;
+ x->mode = 0;
/* Find out the current file creation mask, to knock the right bits
when using chmod. The creation mask is set to be liberal, so