diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-24 12:19:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:31 -0500 |
commit | 10dcfca9f18648f3fb32f0810d36af4e1eaf76e0 (patch) | |
tree | cf00e658ff8086202dfd076b669345ca5faa42d4 /source4/scripting | |
parent | 9dfffdf4c0e228d988f55cf4e80f838aa7320ecb (diff) | |
download | samba-10dcfca9f18648f3fb32f0810d36af4e1eaf76e0.tar.gz samba-10dcfca9f18648f3fb32f0810d36af4e1eaf76e0.tar.bz2 samba-10dcfca9f18648f3fb32f0810d36af4e1eaf76e0.zip |
r9580: put the libinclude() after the GetOptions so the smb.conf is loaded to
get the libjs path
(This used to be commit ee0b693ffaf02e75d3d740c36fffb9ea75e54431)
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/winreg | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/bin/winreg b/source4/scripting/bin/winreg index 12f40f1155..ac6f9e61ba 100755 --- a/source4/scripting/bin/winreg +++ b/source4/scripting/bin/winreg @@ -6,9 +6,6 @@ exec smbscript "$0" ${1+"$@"} Released under the GNU GPL v2 or later */ -libinclude("base.js"); -libinclude("winreg.js"); - var options = GetOptions(ARGV, "POPT_AUTOHELP", "POPT_COMMON_SAMBA", @@ -19,6 +16,9 @@ if (options == undefined) { return -1; } +libinclude("base.js"); +libinclude("winreg.js"); + if (options.ARGV.length < 1) { println("Usage: winreg.js <BINDING> [path]"); return -1; @@ -91,7 +91,7 @@ if (options.ARGV.length > 1) { if (options.createkey) { var ok = reg.create_key("HKLM\\SOFTWARE", options.createkey); if (!ok) { - + println("Failed to create key"); } } else { printf("Listing registry tree '%s'\n", root); |