Merge pull request #439 from ikerexxe/useradd_skel_fix
useradd: change SELinux labels for home files
This commit is contained in:
commit
6c3d4ebf6e
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user