diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-12-21 19:17:45 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-12-21 19:17:45 +0000 |
commit | 2aac7cd0217ce3417b12574ca7f9930090da6c4c (patch) | |
tree | 795177c5cfcaf4b12f3b27c508a6bba0247e424b /src | |
parent | 4d728bc3e60a6d07858f7a881221688ccdebb7fe (diff) |
* Another case of lock file permissions being too liberal.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/pathlocks.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/pathlocks.cc b/src/libstore/pathlocks.cc index d8290815c..645f4cd67 100644 --- a/src/libstore/pathlocks.cc +++ b/src/libstore/pathlocks.cc @@ -16,7 +16,7 @@ int openLockFile(const Path & path, bool create) { AutoCloseFD fd; - fd = open(path.c_str(), O_RDWR | (create ? O_CREAT : 0), 0666); + fd = open(path.c_str(), O_RDWR | (create ? O_CREAT : 0), 0600); if (fd == -1 && (create || errno != ENOENT)) throw SysError(format("opening lock file `%1%'") % path); |