summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1994-02-17 11:08:43 +0000
committerGravatar Richard Basch <probe@mit.edu>1994-02-17 11:08:43 +0000
commite3006becec88ae21c1136db6e46853eeab8bd5a1 (patch)
tree2d08edca25e9fcceafdb792f0731c5b82372904d /clients
parent58399cac5ca355dbdbd6ee5755351dc912eb731a (diff)
The lock file needs to be opened for read/write, not just write.
Diffstat (limited to 'clients')
-rw-r--r--clients/zmailnotify/zmailnotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/zmailnotify/zmailnotify.c b/clients/zmailnotify/zmailnotify.c
index beb4f4e..ba5f4bd 100644
--- a/clients/zmailnotify/zmailnotify.c
+++ b/clients/zmailnotify/zmailnotify.c
@@ -117,7 +117,7 @@ main(argc, argv)
exit(1);
}
- lock = fopen(lockfile,"w");
+ lock = fopen(lockfile,"r+");
#ifdef POSIX
if (lock) {
struct flock fl;