]> granicus.if.org Git - sudo/commitdiff
Fix non-interactive mode with sudoers plugin.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 6 Mar 2011 20:38:02 +0000 (15:38 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 6 Mar 2011 20:38:02 +0000 (15:38 -0500)
plugins/sudoers/sudoers.c

index 30eeee986b7012e44981280c770fe5ea3d62517d..80020cf8b3c95f77b8013f05dd01e7c524f287ad 100644 (file)
@@ -1172,6 +1172,11 @@ deserialize_info(char * const settings[], char * const user_info[])
                SET(flags, MODE_IGNORE_TICKET);
            continue;
        }
+       if (MATCHES(*cur, "noninteractive=")) {
+           if (atobool(*cur + sizeof("noninteractive=") - 1) == TRUE)
+               SET(flags, MODE_NONINTERACTIVE);
+           continue;
+       }
        if (MATCHES(*cur, "sudoedit=")) {
            if (atobool(*cur + sizeof("sudoedit=") - 1) == TRUE)
                SET(flags, MODE_EDIT);