}
}
- 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,
}
}
- 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))
{
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;
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;
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;
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)
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;