summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-26 11:37:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:36 -0500
commit2e35b720862e1a48a8b3ff1400262d4185258121 (patch)
tree28166eb1e52b615be4abcd25b49cb515995bb461 /source4/scripting
parent4ab340d75d58f33e402bc542df8b9ec16f9b9fcf (diff)
downloadsamba-2e35b720862e1a48a8b3ff1400262d4185258121.tar.gz
samba-2e35b720862e1a48a8b3ff1400262d4185258121.tar.bz2
samba-2e35b720862e1a48a8b3ff1400262d4185258121.zip
r9645: fixed the ejs GetOptions() call to look at the first option passed (this is what broke --help)
(This used to be commit 88a7e9e00f3714f89067ef97dfca46bc0688222e)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/ejs/smbcalls_options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_options.c b/source4/scripting/ejs/smbcalls_options.c
index 3ba51bb2f4..2e94b7d72b 100644
--- a/source4/scripting/ejs/smbcalls_options.c
+++ b/source4/scripting/ejs/smbcalls_options.c
@@ -82,7 +82,7 @@ static int ejs_GetOptions(MprVarHandle eid, int argc, struct MprVar **argv)
}
/* create the long_options array */
- for (i=2;i<argc;i++) {
+ for (i=1;i<argc;i++) {
const char *optstr = mprToString(argv[i]);
int t, opt_type = POPT_ARG_NONE;
const char *s;