r9645: fixed the ejs GetOptions() call to look at the first option passed (this is...
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Aug 2005 11:37:52 +0000 (11:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:34:36 +0000 (13:34 -0500)
source/scripting/ejs/smbcalls_options.c

index 3ba51bb2f4992884814276c2d1936f0f3394782c..2e94b7d72bd166302305dd306ba9df6bb8e4ac58 100644 (file)
@@ -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;