summaryrefslogtreecommitdiff
path: root/net-irc/iip/files/iip_open_mode.patch
blob: 6d3aec1af5aba4edfb9d946470249c8ab7ad42f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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))