diff options
author | Martin Schwenke <martin@meltin.net> | 2011-11-29 14:25:31 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2011-12-06 13:59:32 +1100 |
commit | 7e9f998745765372e8b5fa0f8ab930d75b23a6b5 (patch) | |
tree | 8e048d347f74817441fa623cea9121466493c345 | |
parent | 5f69ad3c0a9cea324f4751ae92e3f7957a633a5a (diff) | |
download | samba-7e9f998745765372e8b5fa0f8ab930d75b23a6b5.tar.gz samba-7e9f998745765372e8b5fa0f8ab930d75b23a6b5.tar.xz samba-7e9f998745765372e8b5fa0f8ab930d75b23a6b5.zip |
ctdb tool - commands that don't use the daemon can't take -n/--node
It just doesn't make sense!
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit c4b72683eb046007fbc2e60b4a54bc91faf4cf7e)
-rw-r--r-- | ctdb/tools/ctdb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 3d3cf9ae44..f48217b8da 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -5339,6 +5339,10 @@ int main(int argc, const char *argv[]) } if (ctdb_commands[i].without_daemon == true) { + if (nodestring != NULL) { + DEBUG(DEBUG_ERR, ("Can't specify node(s) with \"ctdb %s\"\n", control)); + exit(1); + } close(2); } |