Implement #includedir directive. Files in an includedir are not edited

by visudo unless they contain a syntax error.
This commit is contained in:
Todd C. Miller
2009-04-18 23:25:08 +00:00
parent e65ec1438a
commit 3be603aa47
13 changed files with 1483 additions and 1047 deletions

View File

@@ -89,7 +89,7 @@ sudo_file_open(nss)
{
if (def_ignore_local_sudoers)
return(-1);
nss->handle = open_sudoers(_PATH_SUDOERS, NULL);
nss->handle = open_sudoers(_PATH_SUDOERS, FALSE, NULL);
return(nss->handle ? 0 : -1);
}