ctdb-daemon: Simplify listing event scripts using scandir
authorAmitay Isaacs <amitay@gmail.com>
Thu, 16 Jan 2014 02:05:58 +0000 (13:05 +1100)
committerMartin Schwenke <martins@samba.org>
Tue, 21 Jan 2014 05:41:25 +0000 (06:41 +0100)
commiteee450fec2f7cb5f45c47162fd5b7c0717978598
tree20c4c7998d0a005088471e395caded4f7e85aceb
parentcbffbb7c2f406fc1d8ebad3c531cc2757232690e
ctdb-daemon: Simplify listing event scripts using scandir

Instead of using RB tree for sorting the script names (incorrectly since
it's only using the leading numbers in the script name), use scandir
with alphasort.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Tue Jan 21 06:41:25 CET 2014 on sn-devel-104
ctdb/server/eventscript.c