diff options
Diffstat (limited to 'games/hack/hack.unix.c')
-rw-r--r-- | games/hack/hack.unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/hack/hack.unix.c b/games/hack/hack.unix.c index 15a50c46a0a..37fe9d9d599 100644 --- a/games/hack/hack.unix.c +++ b/games/hack/hack.unix.c @@ -217,7 +217,7 @@ getlock() do { if(locknum) lock[0] = 'a' + i++; - if((fd = open(lock, 0)) == -1) { + if((fd = open(lock, O_RDONLY)) == -1) { if(errno == ENOENT) goto gotlock; /* no such file */ perror(lock); (void) unlink(LLOCK); |