(_locker_lock_dotlock): Make sure the lock file is writable for the owner.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment