svn commit: samba r11113 - in branches/SAMBA_4_0/source/setup: .
tridge at samba.org
tridge at samba.org
Mon Oct 17 11:33:14 GMT 2005
Author: tridge
Date: 2005-10-17 11:33:13 +0000 (Mon, 17 Oct 2005)
New Revision: 11113
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11113
Log:
fixed two small bugs in newuser
- randpass() is now in the random ejs module, not global
- don't dereference the undefined variable on getopt failure
Modified:
branches/SAMBA_4_0/source/setup/newuser
Changeset:
Modified: branches/SAMBA_4_0/source/setup/newuser
===================================================================
--- branches/SAMBA_4_0/source/setup/newuser 2005-10-17 11:32:20 UTC (rev 11112)
+++ branches/SAMBA_4_0/source/setup/newuser 2005-10-17 11:33:13 UTC (rev 11113)
@@ -16,7 +16,7 @@
'quiet');
if (options == undefined) {
- println("Failed to parse options: " + options.ERROR);
+ println("Failed to parse options");
return -1;
}
@@ -56,6 +56,7 @@
ShowHelp();
}
if (options['password'] == undefined) {
+ random_init(local);
options.password = randpass(12);
printf("chose random password %s\n", options.password);
}
More information about the samba-cvs
mailing list