]> git.armaanb.net Git - opendoas.git/blobdiff - doas.c
Improve error message on missing permission
[opendoas.git] / doas.c
diff --git a/doas.c b/doas.c
index 008132b3a6e0d8c485f040049a973f54cec18040..8275fe180b70ed80e99a8ee05affcca54b610e38 100644 (file)
--- a/doas.c
+++ b/doas.c
@@ -340,7 +340,7 @@ main(int argc, char **argv)
        if (!permit(uid, groups, ngroups, &rule, target, cmd,
            (const char **)argv + 1)) {
                syslog(LOG_AUTHPRIV | LOG_NOTICE,
-                   "failed command for %s: %s", mypw->pw_name, cmdline);
+                   "command not permitted for %s: %s", mypw->pw_name, cmdline);
                errc(1, EPERM, NULL);
        }