Merge pull request #439 from ikerexxe/useradd_skel_fix

useradd: change SELinux labels for home files
This commit is contained in:
Serge Hallyn 2021-11-17 08:17:34 -06:00 committed by GitHub
commit 6c3d4ebf6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2704,7 +2704,7 @@ int main (int argc, char **argv)
if (mflg) { if (mflg) {
create_home (); create_home ();
if (home_added) { if (home_added) {
copy_tree (def_template, prefix_user_home, false, false, copy_tree (def_template, prefix_user_home, false, true,
(uid_t)-1, user_id, (gid_t)-1, user_gid); (uid_t)-1, user_id, (gid_t)-1, user_gid);
} else { } else {
fprintf (stderr, fprintf (stderr,