=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lock/lock.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- src/usr.bin/lock/lock.c 2009/10/27 23:59:39 1.25 +++ src/usr.bin/lock/lock.c 2010/06/13 15:26:06 1.26 @@ -1,4 +1,4 @@ -/* $OpenBSD: lock.c,v 1.25 2009/10/27 23:59:39 deraadt Exp $ */ +/* $OpenBSD: lock.c,v 1.26 2010/06/13 15:26:06 tobias Exp $ */ /* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* @@ -135,6 +135,8 @@ timeout.tv_sec = sectimeout * 60; gethostname(hostname, sizeof(hostname)); + if (usemine && lc == NULL) + errx(1, "login class not found"); if (!(ttynam = ttyname(STDIN_FILENO))) errx(1, "not a terminal?"); curtime = time(NULL);