=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/doas/doas.c,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/usr.bin/doas/doas.c 2015/08/22 16:01:05 1.38 --- src/usr.bin/doas/doas.c 2015/08/27 16:31:02 1.39 *************** *** 1,4 **** ! /* $OpenBSD: doas.c,v 1.38 2015/08/22 16:01:05 doug Exp $ */ /* * Copyright (c) 2015 Ted Unangst * --- 1,4 ---- ! /* $OpenBSD: doas.c,v 1.39 2015/08/27 16:31:02 tedu Exp $ */ /* * Copyright (c) 2015 Ted Unangst * *************** *** 409,415 **** if (!(rule->options & NOPASS)) { if (nflag) errx(1, "Authorization required"); ! if (!auth_userokay(myname, NULL, NULL, NULL)) { syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed password for %s", myname); permfail(); --- 409,415 ---- if (!(rule->options & NOPASS)) { if (nflag) errx(1, "Authorization required"); ! if (!auth_userokay(myname, NULL, "auth-doas", NULL)) { syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed password for %s", myname); permfail();