=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/doas/doas.c,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- src/usr.bin/doas/doas.c 2020/10/09 00:04:05 1.83 +++ src/usr.bin/doas/doas.c 2020/10/09 07:43:38 1.84 @@ -1,4 +1,4 @@ -/* $OpenBSD: doas.c,v 1.83 2020/10/09 00:04:05 kn Exp $ */ +/* $OpenBSD: doas.c,v 1.84 2020/10/09 07:43:38 kn Exp $ */ /* * Copyright (c) 2015 Ted Unangst * @@ -448,8 +448,11 @@ if (pledge("stdio exec", NULL) == -1) err(1, "pledge"); - syslog(LOG_AUTHPRIV | LOG_INFO, "%s ran command %s as %s from %s", - mypw->pw_name, cmdline, targpw->pw_name, cwd); + if (!(rule->options & NOLOG)) { + syslog(LOG_AUTHPRIV | LOG_INFO, + "%s ran command %s as %s from %s", + mypw->pw_name, cmdline, targpw->pw_name, cwd); + } envp = prepenv(rule, mypw, targpw);