diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-15 10:57:23 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-15 20:45:25 +0100 |
commit | b3630b4739b8cb7cf99e46ae13bbe52819a95750 (patch) | |
tree | f240e128ef8e763f611164b2480d8b3844250ba5 /source3/utils/net.c | |
parent | 4a2d39697159c575721dfb3d2ff3940c6259f44b (diff) | |
download | samba-b3630b4739b8cb7cf99e46ae13bbe52819a95750.tar.gz samba-b3630b4739b8cb7cf99e46ae13bbe52819a95750.tar.xz samba-b3630b4739b8cb7cf99e46ae13bbe52819a95750.zip |
Fix bug 7866 - "net" in v3-6-test broken.
Someone wasn't careful about testing when not running as root :-).
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 20:45:25 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r-- | source3/utils/net.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index 44119dc2c6..13eed2f9ca 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -924,11 +924,11 @@ static struct functable net_func[] = { c->opt_password = getenv("PASSWD"); } + /* Failing to init the msg_ctx isn't a fatal error. Only + root-level things (joining/leaving domains etc.) will be denied. */ + c->msg_ctx = messaging_init(c, procid_self(), event_context_init(c)); - if (c->msg_ctx == NULL) { - exit(1); - } rc = net_run_function(c, argc_new-1, argv_new+1, "net", net_func); |