Patch by aba: Don't export the password when [NOPASSWD] is set
authorjoey <>
Sat, 11 Aug 2007 09:00:17 +0000 (09:00 +0000)
committerjoey <>
Sat, 11 Aug 2007 09:00:17 +0000 (09:00 +0000)
ud-generate

index 63cf2bf..b7ca633 100755 (executable)
@@ -809,7 +809,8 @@ while(1):
    GenGroup(l,OutDir+"group");
    if ExtraList.has_key("[UNTRUSTED]"):
        continue;
-   GenShadow(l,OutDir+"shadow");
+   if not ExtraList.has_key("[NOPASSWD]"):
+     GenShadow(l,OutDir+"shadow");
        
    # Link in global things   
    DoLink(GlobalDir,OutDir,"markers");