Skip to content

Commit

Permalink
setuid-wrappers: correctly umount the tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Sep 4, 2016
1 parent c536a3f commit 393e646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/security/setuid-wrappers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ in
# Compatibility with old state, just remove the folder and symlink
rm -f ${wrapperDir}/*
# if it happens to be a tmpfs
umount ${wrapperDir} || true
${pkgs.utillinux}/bin/umount ${wrapperDir} || true
rm -d ${wrapperDir}
ln -d --symbolic $wrapperDir ${wrapperDir}
else
Expand Down

0 comments on commit 393e646

Please sign in to comment.