diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-22 23:31:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:21 -0500 |
commit | fef7a81478cb246a7d2fe29283a50d52501ccc33 (patch) | |
tree | 271e0ffd7985aa451a1448dd93d344fa501e5e85 /source4 | |
parent | 115945facab217f0744413c65ae485c07ffb52dc (diff) | |
download | samba-fef7a81478cb246a7d2fe29283a50d52501ccc33.tar.gz samba-fef7a81478cb246a7d2fe29283a50d52501ccc33.tar.bz2 samba-fef7a81478cb246a7d2fe29283a50d52501ccc33.zip |
r9491: fixed up a few scripts that need to be updated for the new GetOptions syntax. Mimir, its
a good idea to use grep -r to find places that need fixing when you change the syntax of
a call :-)
(This used to be commit 1ead49f8e823a69dbd9cd3df3f5be04dc17e0d1f)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/scripting/bin/winreg | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source4/scripting/bin/winreg b/source4/scripting/bin/winreg index d869d356fd..7656c8a441 100755 --- a/source4/scripting/bin/winreg +++ b/source4/scripting/bin/winreg @@ -9,14 +9,12 @@ exec smbscript "$0" ${1+"$@"} libinclude("base.js"); libinclude("winreg.js"); -var options = new Object(); - -ok = GetOptions(ARGV, options, - "POPT_AUTOHELP", - "POPT_COMMON_SAMBA", - "POPT_COMMON_CREDENTIALS"); -if (ok == false) { - println("Failed to parse options: " + options.ERROR); +var options = GetOptions(ARGV, + "POPT_AUTOHELP", + "POPT_COMMON_SAMBA", + "POPT_COMMON_CREDENTIALS"); +if (options == undefined) { + println("Failed to parse options"); return -1; } |