1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-25 19:33:18 +03:00

r9580: put the libinclude() after the GetOptions so the smb.conf is loaded to

get the libjs path
This commit is contained in:
Andrew Tridgell
2005-08-24 12:19:59 +00:00
committed by Gerald (Jerry) Carter
parent f95bf0adf7
commit ee0b693ffa

View File

@@ -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);