mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 07:12:27 +00:00
* Another case of lock file permissions being too liberal.
This commit is contained in:
parent
4d728bc3e6
commit
2aac7cd021
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user