=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/login/failedlogin.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/login/failedlogin.c 2009/10/27 23:59:40 1.15 +++ src/usr.bin/login/failedlogin.c 2013/06/01 21:06:39 1.16 @@ -1,4 +1,4 @@ -/* $OpenBSD: failedlogin.c,v 1.15 2009/10/27 23:59:40 deraadt Exp $ */ +/* $OpenBSD: failedlogin.c,v 1.16 2013/06/01 21:06:39 deraadt Exp $ */ /* * Copyright (c) 1996 Todd C. Miller @@ -56,7 +56,7 @@ int fd; /* Add O_CREAT if you want to create failedlogin if it doesn't exist */ - if ((fd = open(_PATH_FAILEDLOGIN, O_RDWR, S_IREAD|S_IWRITE)) >= 0) { + if ((fd = open(_PATH_FAILEDLOGIN, O_RDWR, S_IRUSR|S_IWUSR)) >= 0) { (void)lseek(fd, (off_t)uid * sizeof(failedlogin), SEEK_SET); /* Read in last bad login so can get the count */