* Another case of lock file permissions being too liberal.

This commit is contained in:
Eelco Dolstra 2011-12-21 19:17:45 +00:00
parent 4d728bc3e6
commit 2aac7cd021
1 changed files with 1 additions and 1 deletions

View File

@ -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);