diff options
author | Jim Meyering <jim@meyering.net> | 2001-10-13 17:24:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-10-13 17:24:38 +0000 |
commit | 66372e29ebd1ab37cf9be406ba60c695f874879a (patch) | |
tree | 00f436b65cf4806585e6ef4576d89c7792ae9bc4 /src | |
parent | b604e6b1f1fde071e4eed08bbdbdec5851cd276c (diff) | |
download | coreutils-66372e29ebd1ab37cf9be406ba60c695f874879a.tar.xz |
* src/copy.h (struct cp_options): Rename members:
s/preserve_owner_and_group/preserve_ownership/, and
s/preserve_chmod_bits/preserve_mode/.
* src/copy.c, src/cp.c, src/install.c, src/mv.c: Update all uses.
Diffstat (limited to 'src')
-rw-r--r-- | src/cp.c | 18 | ||||
-rw-r--r-- | src/install.c | 4 | ||||
-rw-r--r-- | src/mv.c | 4 |
3 files changed, 13 insertions, 13 deletions
@@ -303,7 +303,7 @@ re_protect (const char *const_dst_path, int src_offset, } } - if (x->preserve_owner_and_group) + if (x->preserve_ownership) { /* If non-root uses -p, it's ok if we can't preserve ownership. But root probably wants to know, e.g. if NFS disallows it, @@ -317,7 +317,7 @@ re_protect (const char *const_dst_path, int src_offset, } } - if (x->preserve_chmod_bits || p->is_new_dir) + if (x->preserve_mode || p->is_new_dir) { if (chmod (dst_path, src_sb.st_mode & x->umask_kill)) { @@ -697,8 +697,8 @@ cp_option_init (struct cp_options *x) x->move_mode = 0; x->one_file_system = 0; - x->preserve_owner_and_group = 0; - x->preserve_chmod_bits = 0; + x->preserve_ownership = 0; + x->preserve_mode = 0; x->preserve_timestamps = 0; x->require_preserve = 0; @@ -760,8 +760,8 @@ main (int argc, char **argv) case 'a': /* Like -dpR. */ x.dereference = DEREF_NEVER; - x.preserve_owner_and_group = 1; - x.preserve_chmod_bits = 1; + x.preserve_ownership = 1; + x.preserve_mode = 1; x.preserve_timestamps = 1; x.require_preserve = 1; x.recursive = 1; @@ -806,8 +806,8 @@ main (int argc, char **argv) break; case 'p': - x.preserve_owner_and_group = 1; - x.preserve_chmod_bits = 1; + x.preserve_ownership = 1; + x.preserve_mode = 1; x.preserve_timestamps = 1; x.require_preserve = 1; break; @@ -902,7 +902,7 @@ Use `--parents' for the old meaning, and `--no-dereference' for the new one.")); version_control_string) : none); - if (x.preserve_chmod_bits == 1) + if (x.preserve_mode == 1) x.umask_kill = ~ (mode_t) 0; if (x.dereference == DEREF_UNDEFINED) diff --git a/src/install.c b/src/install.c index 49b55a036..1642cd3d7 100644 --- a/src/install.c +++ b/src/install.c @@ -156,8 +156,8 @@ cp_option_init (struct cp_options *x) x->move_mode = 0; x->myeuid = geteuid (); x->one_file_system = 0; - x->preserve_owner_and_group = 0; - x->preserve_chmod_bits = 0; + x->preserve_ownership = 0; + x->preserve_mode = 0; x->preserve_timestamps = 0; x->require_preserve = 0; x->recursive = 0; @@ -128,8 +128,8 @@ cp_option_init (struct cp_options *x) x->move_mode = 1; x->myeuid = geteuid (); x->one_file_system = 0; - x->preserve_owner_and_group = 1; - x->preserve_chmod_bits = 1; + x->preserve_ownership = 1; + x->preserve_mode = 1; x->preserve_timestamps = 1; x->require_preserve = 0; /* FIXME: maybe make this an option */ x->recursive = 1; |