=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/oldrdist/Attic/docmd.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/oldrdist/Attic/docmd.c 1998/04/26 17:55:46 1.11 --- src/usr.bin/oldrdist/Attic/docmd.c 1999/08/17 09:13:16 1.12 *************** *** 1,4 **** ! /* $OpenBSD: docmd.c,v 1.11 1998/04/26 17:55:46 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 --- 1,4 ---- ! /* $OpenBSD: docmd.c,v 1.12 1999/08/17 09:13:16 millert Exp $ */ /* * Copyright (c) 1983, 1993 *************** *** 35,41 **** #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 $"; #endif /* not lint */ #include "defs.h" --- 35,41 ---- #ifndef lint /* from: static char sccsid[] = "@(#)docmd.c 8.1 (Berkeley) 6/9/93"; */ ! static char *rcsid = "$OpenBSD: docmd.c,v 1.12 1999/08/17 09:13:16 millert Exp $"; #endif /* not lint */ #include "defs.h" *************** *** 552,558 **** if (nflag) return; ! if ((fd = open(file, 0)) < 0) { error("%s: %s\n", file, strerror(errno)); return; } --- 552,558 ---- if (nflag) return; ! if ((fd = open(file, O_RDONLY)) < 0) { error("%s: %s\n", file, strerror(errno)); return; }