diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-09-23T17·05+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-09-23T17·05+0000 |
commit | 64e89980e880826fec3e973e50edebf24278c7b8 (patch) | |
tree | c6a6ff51971f9d23622e3884bd37efef6cefc862 /src/libstore/build.cc | |
parent | 48b58617e9e84fd1a0e4bd11798bd6b9d04a1633 (diff) |
* Create some state directories automatically as a convenience.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 81a776e4fdf3..cd3dddab6cca 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -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(); |