]> granicus.if.org Git - sudo/commitdiff
honor SETENV and NOSETENV tags
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 28 Jun 2007 14:42:43 +0000 (14:42 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 28 Jun 2007 14:42:43 +0000 (14:42 +0000)
sudoers2ldif

index dadfc220e02e262507c70db847d2268755618f1b..4dcd8cf362ba2acf3865809ebb029d6b3dac4c8c 100644 (file)
@@ -103,6 +103,8 @@ sub expand{
     s/PASSWD:\s*// && push @options,"authenticate";
     s/NOEXEC:\s*// && push @options,"noexec";
     s/EXEC:\s*// && push @options,"!noexec";
+    s/SETENV:\s*// && push @options,"setenv";
+    s/NOSETENV:\s*// && push @options,"!setenv";
     s/\w+://; # silently remove other directives
     s/\s+$//; # right trim
   }