mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-03 06:20:53 -04:00
(cp_options_init): Use chown_privileges rather than geteuid.
This commit is contained in:
+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