summary refs log tree commit diff
path: root/nixos/modules/config/update-users-groups.pl
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2017-03-08 00:29:20 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2017-03-08 00:29:20 +0100
commit9ea35eae7a5aee9159735ca662b65c8552aec8dc (patch)
tree34fe13696da48bff988efd7dd88ef0f15b7c7185 /nixos/modules/config/update-users-groups.pl
parente206d5ab63b64b377c22488ac0b33481bef9bf21 (diff)
downloadnixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar
nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.gz
nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.bz2
nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.lz
nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.xz
nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.tar.zst
nixlib-9ea35eae7a5aee9159735ca662b65c8552aec8dc.zip
nixos/users-groups: chown home on createHome
Fixes #23619.
Diffstat (limited to 'nixos/modules/config/update-users-groups.pl')
-rw-r--r--nixos/modules/config/update-users-groups.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/update-users-groups.pl b/nixos/modules/config/update-users-groups.pl
index cbbe216e5a17..4ca8a83554ad 100644
--- a/nixos/modules/config/update-users-groups.pl
+++ b/nixos/modules/config/update-users-groups.pl
@@ -177,7 +177,7 @@ foreach my $u (@{$spec->{users}}) {
     }
 
     # Create a home directory.
-    if ($u->{createHome} && ! -e $u->{home}) {
+    if ($u->{createHome}) {
         make_path($u->{home}, { mode => 0700 }) if ! -e $u->{home};
         chown $u->{uid}, $u->{gid}, $u->{home};
     }