mirror of
https://github.com/NixOS/nix
synced 2025-07-05 20:41:47 +02:00
unshareFilesystem
: Do not assume caller
This commit is contained in:
parent
bd7a074636
commit
d5fdfdc592
2 changed files with 7 additions and 2 deletions
|
@ -140,7 +140,7 @@ void restoreMountNamespace()
|
|||
void unshareFilesystem()
|
||||
{
|
||||
if (unshare(CLONE_FS) != 0 && errno != EPERM)
|
||||
throw SysError("unsharing filesystem state in download thread");
|
||||
throw SysError("unsharing filesystem state");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue