summaryrefslogtreecommitdiff
path: root/source4/utils/net
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-12-28 21:07:25 +0100
committerJelmer Vernooij <jelmer@ganieda.vernstok.nl>2009-12-29 16:26:20 +0100
commite2c4d8281d726716a00cfe2e3e0352777fc8b66f (patch)
tree8ca4a0e53f30256a81ef4131db6fa66c80793a6e /source4/utils/net
parent433f58f5a7490ba470dddc55e37325bb73cdba5c (diff)
downloadsamba-e2c4d8281d726716a00cfe2e3e0352777fc8b66f.tar.gz
samba-e2c4d8281d726716a00cfe2e3e0352777fc8b66f.tar.bz2
samba-e2c4d8281d726716a00cfe2e3e0352777fc8b66f.zip
s4/net: Allow options before arguments for Python commands.
Diffstat (limited to 'source4/utils/net')
-rw-r--r--source4/utils/net/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index 7b8f092f93..f761ef4050 100644
--- a/source4/utils/net/net.c
+++ b/source4/utils/net/net.c
@@ -346,10 +346,10 @@ static int binary_net(int argc, const char **argv)
return 1;
}
- py_cmd = PyDict_GetItemString(py_cmds, argv[1]);
+ py_cmd = PyDict_GetItemString(py_cmds, argv_new[1]);
if (py_cmd != NULL) {
rc = py_call_with_string_args(py_cmd, "_run",
- argc-2, argv+2);
+ argc-1, argv+1);
talloc_free(ev);
return rc;
}