about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-26T19·04-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-26T19·04-0400
commit3a4623afbbc1bff85bde33167d36e8c5a4a3df0d (patch)
tree5e39b404333b720d711da1c04489b631b878ecf8 /src/libutil/util.hh
parent2605f4f4e6a367df67bf8b33b252c350313699c9 (diff)
Set permissions on temporary build directories to 0700
Fixes #39.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 362d0f65e2..9b8656f704 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -88,7 +88,7 @@ void makePathReadOnly(const Path & path);
 
 /* Create a temporary directory. */
 Path createTempDir(const Path & tmpRoot = "", const Path & prefix = "nix",
-    bool includePid = true, bool useGlobalCounter = true);
+    bool includePid = true, bool useGlobalCounter = true, mode_t mode = 0755);
 
 /* Create a directory and all its parents, if necessary.  Returns the
    list of created directories, in order of creation. */