Commit 1ae03496 1ae03496ac2dd29e0e4203f41006864d04c862ee by Sergey Poznyakoff

(_locker_lock_dotlock): Make sure the lock file is writable for the owner.

1 parent 59c6ecdc
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
41 #include <mailutils/locker.h> 41 #include <mailutils/locker.h>
42 #include <mailutils/mutil.h> 42 #include <mailutils/mutil.h>
43 43
44 #define LOCKFILE_ATTR 0444 44 #define LOCKFILE_ATTR 0644
45 45
46 /* First draft by Brian Edmond. */ 46 /* First draft by Brian Edmond. */
47 /* For subsequent modifications, see the GNU mailutils ChangeLog. */ 47 /* For subsequent modifications, see the GNU mailutils ChangeLog. */
...@@ -714,7 +714,7 @@ _locker_lock_dotlock (locker_t lock) ...@@ -714,7 +714,7 @@ _locker_lock_dotlock (locker_t lock)
714 return errno; 714 return errno;
715 } 715 }
716 716
717 if ((fd = open (lock->data.dot.dotlock, O_RDONLY)) == -1) 717 if ((fd = open (lock->data.dot.dotlock, O_RDWR)) == -1)
718 { 718 {
719 unlink (lock->data.dot.nfslock); 719 unlink (lock->data.dot.nfslock);
720 return errno; 720 return errno;
......