Author: tridge
Date: 2005-08-24 12:19:59 +0000 (Wed, 24 Aug 2005)
New Revision: 9580

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9580

Log:

put the libinclude() after the GetOptions so the smb.conf is loaded to
get the libjs path

Modified:
   branches/SAMBA_4_0/source/scripting/bin/winreg


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/bin/winreg
===================================================================
--- branches/SAMBA_4_0/source/scripting/bin/winreg      2005-08-24 11:53:01 UTC 
(rev 9579)
+++ branches/SAMBA_4_0/source/scripting/bin/winreg      2005-08-24 12:19:59 UTC 
(rev 9580)
@@ -6,9 +6,6 @@
   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 @@
        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.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);

Reply via email to