ctdb-common: Improve error handling in run_event
commit723529e41e3af72f8f42a3a61192c3ef3b86861b
authorAmitay Isaacs <amitay@gmail.com>
Thu, 10 May 2018 06:50:35 +0000 (10 16:50 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 5 Jun 2018 20:34:19 +0000 (5 22:34 +0200)
treeb6322decbff6ad8afae7d71e0419fd35d48ab555
parenta3591ed5de145df54cf29027273416876de1b774
ctdb-common: Improve error handling in run_event

If event script directory does not exist, then return ENOTDIR.  If a
directory gets removed at runtime, report error from scandir in
get_script_list().

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