diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-05-31 06:16:09 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-05-31 06:16:09 +0000 |
commit | fe34f6c28d1bb2db41248a7a344008d28fa4eda6 (patch) | |
tree | 548f8675fbb8752ccbb5e584e06631bd03538496 /src | |
parent | 1b3bf65c5173c1e7a34e3ea323a67254fb95e3f8 (diff) | |
download | coreutils-fe34f6c28d1bb2db41248a7a344008d28fa4eda6.tar.xz |
(cp_options_init): Use chown_privileges rather than geteuid.
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; |