ctdb-tools: Avoid use of non-portable getopt in onnode
authorMartin Schwenke <martin@meltin.net>
Sun, 1 Jul 2018 08:43:06 +0000 (18:43 +1000)
committerMartin Schwenke <martins@samba.org>
Sat, 28 Jul 2018 01:50:10 +0000 (03:50 +0200)
commit4a39bc4aaad541f1e89c0eb3e98d4104bcc25025
tree92c9d9780c4b522c6fc73bf26371e1da4a55fdb3
parentdd9d8a20aa6948a5d1e7fb532842b7ff5bc0f550
ctdb-tools: Avoid use of non-portable getopt in onnode

getopt is being used with non-portable options.  Use simpler,
POSIX-compliant getopts instead.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13520

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/onnode