1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

* Create some state directories automatically as a convenience.

This commit is contained in:
Eelco Dolstra 2009-09-23 17:05:51 +00:00
parent 48b58617e9
commit 64e89980e8
2 changed files with 17 additions and 6 deletions

View file

@ -467,6 +467,8 @@ void UserLock::acquire()
if (!pw)
throw Error(format("the user `%1%' in the group `%2%' does not exist")
% *i % buildUsersGroup);
createDirs(nixStateDir + "/userpool");
fnUserLock = (format("%1%/userpool/%2%") % nixStateDir % pw->pw_uid).str();