=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/last/last.c,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- src/usr.bin/last/last.c 2021/07/12 15:09:19 1.53 +++ src/usr.bin/last/last.c 2021/10/24 21:24:16 1.54 @@ -1,4 +1,4 @@ -/* $OpenBSD: last.c,v 1.53 2021/07/12 15:09:19 beck Exp $ */ +/* $OpenBSD: last.c,v 1.54 2021/10/24 21:24:16 deraadt Exp $ */ /* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */ /* @@ -254,7 +254,7 @@ off_t bl; struct ttytab *T; - if ((wfd = open(file, O_RDONLY, 0)) == -1 || fstat(wfd, &stb) == -1) + if ((wfd = open(file, O_RDONLY)) == -1 || fstat(wfd, &stb) == -1) err(1, "%s", file); bl = (stb.st_size + sizeof(buf) - 1) / sizeof(buf);