diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-24 12:19:59 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2005-08-24 12:19:59 +0000 |
commit | 6cddd3f87e9b1d074af9953b6b773d32df656692 (patch) | |
tree | 26a5c9f67a91d5ba848b42dc3c4106d2ada7cf0c /source | |
parent | 4442a69a40466b3b34c76aa5e99ff044c5331a6a (diff) | |
download | samba-6cddd3f87e9b1d074af9953b6b773d32df656692.tar.gz samba-6cddd3f87e9b1d074af9953b6b773d32df656692.tar.xz samba-6cddd3f87e9b1d074af9953b6b773d32df656692.zip |
r9580: put the libinclude() after the GetOptions so the smb.conf is loaded to
get the libjs path
Diffstat (limited to 'source')
-rwxr-xr-x | source/scripting/bin/winreg | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/scripting/bin/winreg b/source/scripting/bin/winreg index 12f40f11555..ac6f9e61ba1 100755 --- a/source/scripting/bin/winreg +++ b/source/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); |