diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-08-16 17:00:18 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-08-16 17:00:18 +0000 |
commit | f614ad9ddbe518d66af1d345c18ac6c1d4b3ec72 (patch) | |
tree | 6f9ff210ef26a86ab8a226b9f1192c11e01eb114 /games/hack/hack.pager.c | |
parent | 7f4a7535eb888a8b95b0a6c252954d2464a59753 (diff) |
use O_* defines for open(2) flags and include fcntl.h
Diffstat (limited to 'games/hack/hack.pager.c')
-rw-r--r-- | games/hack/hack.pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/hack/hack.pager.c b/games/hack/hack.pager.c index 13382aceda4..c07881bfbc4 100644 --- a/games/hack/hack.pager.c +++ b/games/hack/hack.pager.c @@ -301,7 +301,7 @@ boolean silent; { /* use external pager; this may give security problems */ - register int fd = open(fnam, 0); + register int fd = open(fnam, O_RDONLY); if(fd < 0) { if(!silent) pline("Cannot open %s.", fnam); |