diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/install.c | 2 | ||||
-rw-r--r-- | src/mv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c index 28bba8a39..6b5a66a5b 100644 --- a/src/install.c +++ b/src/install.c @@ -134,7 +134,7 @@ cp_option_init (struct cp_options *x) x->hard_link = false; x->interactive = I_UNSPECIFIED; x->move_mode = false; - x->myeuid = geteuid (); + x->chown_privileges = chown_privileges (); x->one_file_system = false; x->preserve_ownership = false; x->preserve_links = false; @@ -121,7 +121,7 @@ cp_option_init (struct cp_options *x) x->hard_link = false; x->interactive = I_UNSPECIFIED; x->move_mode = true; - x->myeuid = geteuid (); + x->chown_privileges = chown_privileges (); x->one_file_system = false; x->preserve_ownership = true; x->preserve_links = true; |