blob: 6d3aec1af5aba4edfb9d946470249c8ab7ad42f6 [file] [log] [blame]
--- src/misc/unix.c 2002-10-29 07:56:29.000000000 +0000
+++ src/misc/unix.c 2009-03-05 13:12:54.000000000 +0000
@@ -100,7 +100,7 @@
s = stringCopyMany(lockfilepath, lockfileprefix, NULL);
s = stringJoinMany(s, intToString((int) getpid()), NULL);
- fd = open(s, O_CREAT | O_EXCL | S_IWUSR);
+ fd = open(s, O_CREAT | O_EXCL ,S_IWUSR | S_IRUSR);
if(fd == -1) {
LOGERROR(stringCopyMany("unixAddLockFile: open lock file failed (", s, ")",
_("Error opening lockfile."), NULL))