=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/split/split.c,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/usr.bin/split/split.c 2015/12/31 16:13:01 1.21 --- src/usr.bin/split/split.c 2021/10/24 21:24:17 1.22 *************** *** 1,4 **** ! /* $OpenBSD: split.c,v 1.21 2015/12/31 16:13:01 millert Exp $ */ /* $NetBSD: split.c,v 1.5 1995/08/31 22:22:05 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: split.c,v 1.22 2021/10/24 21:24:17 deraadt Exp $ */ /* $NetBSD: split.c,v 1.5 1995/08/31 22:22:05 jtc Exp $ */ /* *************** *** 133,139 **** if (*argv != NULL) if (ifd == -1) { /* Input file. */ ! if ((ifd = open(*argv, O_RDONLY, 0)) < 0) err(1, "%s", *argv); ++argv; } --- 133,139 ---- if (*argv != NULL) if (ifd == -1) { /* Input file. */ ! if ((ifd = open(*argv, O_RDONLY)) < 0) err(1, "%s", *argv); ++argv; }