diff options
author | Jim Meyering <jim@meyering.net> | 1998-05-10 12:19:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-05-10 12:19:30 +0000 |
commit | 50e17793c88b9c12658261ad4f497b3497812cb5 (patch) | |
tree | 68ae45a53f5b6e7712d22622193635d343056536 /src | |
parent | 8a0a50e6b014c64fdd9eb7b9a9a162be83529e3d (diff) | |
download | coreutils-50e17793c88b9c12658261ad4f497b3497812cb5.tar.xz |
(cp_option_init): Initialize new members.
Diffstat (limited to 'src')
-rw-r--r-- | src/mv.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |