mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(cp_options_init): Use chown_privileges rather than geteuid.
This commit is contained in:
1 parent
1b3bf65c51
commit
fe34f6c28d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user