diff options
Diffstat (limited to 'games/hack/hack.do.c')
-rw-r--r-- | games/hack/hack.do.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hack/hack.do.c b/games/hack/hack.do.c index e74f0747bc9..8b2457cd8b1 100644 --- a/games/hack/hack.do.c +++ b/games/hack/hack.do.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.do.c,v 1.8 2014/03/11 08:05:15 guenther Exp $ */ +/* $OpenBSD: hack.do.c,v 1.9 2015/11/11 01:12:10 deraadt Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -193,7 +193,7 @@ goto_level(int newlevel, boolean at_stairs) if(newlevel == dlevel) return; /* this can happen */ glo(dlevel); - fd = creat(lock, FMASK); + fd = open(lock, O_CREAT | O_TRUNC | O_WRONLY, FMASK); if(fd < 0) { /* * This is not quite impossible: e.g., we may have |