(cp_options_init): Use chown_privileges rather than geteuid.

This commit is contained in:
Paul Eggert
2005-05-31 06:16:09 +00:00
parent 1b3bf65c51
commit fe34f6c28d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;