diff options
Diffstat (limited to 'nixos/modules/system/etc/setup-etc.pl')
-rw-r--r-- | nixos/modules/system/etc/setup-etc.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/system/etc/setup-etc.pl b/nixos/modules/system/etc/setup-etc.pl index d7e15eccefc..89a49b972ff 100644 --- a/nixos/modules/system/etc/setup-etc.pl +++ b/nixos/modules/system/etc/setup-etc.pl @@ -12,8 +12,8 @@ sub atomicSymlink { my ($source, $target) = @_; my $tmp = "$target.tmp"; unlink $tmp; - symlink $source, $tmp or return 1; - rename $tmp, $target or return 1; + symlink $source, $tmp or return 0; + rename $tmp, $target or return 0; return 1; } |