Add simple regress tests for sudo.conf parsing.

This commit is contained in:
Todd C. Miller
2013-02-15 14:42:10 -05:00
parent 790304789e
commit 0c40e82c16
16 changed files with 295 additions and 72 deletions

View File

@@ -57,7 +57,7 @@ main(int argc, char *argv[], char *envp[])
errorx(EXIT_FAILURE, _("requires at least one argument"));
/* Read sudo.conf. */
sudo_conf_read();
sudo_conf_read(NULL);
/* If argv[0] ends in -noexec, pass the flag to sudo_execve() */
if ((cp = strrchr(argv[0], '-')) != NULL && cp != argv[0])