forked from lix-project/lix
* 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;
|
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))
|
if (fd == -1 && (create || errno != ENOENT))
|
||||||
throw SysError(format("opening lock file `%1%'") % path);
|
throw SysError(format("opening lock file `%1%'") % path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue