diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-08-17 09:13:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-08-17 09:13:17 +0000 |
commit | 63b7a98cc57e3a3fbf4e70bcd27a4eb65721c359 (patch) | |
tree | 04f5f18255e1ed724e1267f93be97b3001966d2b /usr.bin/oldrdist/docmd.c | |
parent | fe89691a2e6a46dc13e58dde591c3c37ac355e5c (diff) |
More <sys/file.h> vs. <fcntl.h> and open() flags fixes.
Diffstat (limited to 'usr.bin/oldrdist/docmd.c')
-rw-r--r-- | usr.bin/oldrdist/docmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/oldrdist/docmd.c b/usr.bin/oldrdist/docmd.c index e6d9c7f5005..23f17160abc 100644 --- a/usr.bin/oldrdist/docmd.c +++ b/usr.bin/oldrdist/docmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: docmd.c,v 1.11 1998/04/26 17:55:46 deraadt Exp $ */ +/* $OpenBSD: docmd.c,v 1.12 1999/08/17 09:13:16 millert Exp $ */ /* * Copyright (c) 1983, 1993 @@ -35,7 +35,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)docmd.c 8.1 (Berkeley) 6/9/93"; */ -static char *rcsid = "$OpenBSD: docmd.c,v 1.11 1998/04/26 17:55:46 deraadt Exp $"; +static char *rcsid = "$OpenBSD: docmd.c,v 1.12 1999/08/17 09:13:16 millert Exp $"; #endif /* not lint */ #include "defs.h" @@ -552,7 +552,7 @@ notify(file, rhost, to, lmod) if (nflag) return; - if ((fd = open(file, 0)) < 0) { + if ((fd = open(file, O_RDONLY)) < 0) { error("%s: %s\n", file, strerror(errno)); return; } |