1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/common
Martin Schwenke fee31b6cb2 ctdb-common: Map ENOENT for a missing event script to ENOEXEC
This handles the case where an event script is disabled by unlinking,
while an event is being run, after the script list has been created.
Without this change the script will fail.  With this change the script
will be marked as DISABLED.  See the comment added by this commit for
more details.

Add a testcase to simulate the race, using an event script to disable
subsequent ones.

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

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu Nov 21 01:42:09 UTC 2024 on atb-devel-224
2024-11-21 01:42:09 +00:00
..
cmdline.c ctdb-common: Remove signed/unsigned comparisons 2020-02-18 02:56:38 +00:00
cmdline.h ctdb:common: Fix code spelling 2023-03-24 07:01:31 +00:00
comm.c
comm.h
common.h ctdb-daemon: Use ctdb_parse_node_address() in ctdbd 2024-07-23 12:39:18 +00:00
ctdb_io.c Fix starvation of pending writes in CTDB queues 2024-07-01 09:17:43 +00:00
ctdb_ltdb.c ctdb: Add missing newlines to logging messages 2023-08-08 04:39:36 +00:00
ctdb_util.c ctdb-daemon: Use ctdb_parse_node_address() in ctdbd 2024-07-23 12:39:18 +00:00
db_hash.c
db_hash.h
event_script.c ctdb-common: Fix signed/unsigned comparisons by casting 2019-07-05 05:03:24 +00:00
event_script.h
hash_count.c
hash_count.h
logging.c lib/util: Add "debug syslog format = always", which logs to stdout in syslog style 2023-04-06 12:51:30 +00:00
logging.h ctdb-common: Add support for reopening logs 2022-01-17 03:43:30 +00:00
path_tool.c ctdb-common: Add section to group commands in cmdline 2019-11-14 10:38:34 +00:00
path_tool.h
path.c ctdb-common: Fix signed/unsigned comparisons by casting 2019-06-05 10:25:49 +00:00
path.h
pidfile.c lib: Make pidfile_path_create() return the existing PID on conflict 2021-03-16 17:09:32 +00:00
pidfile.h
pkt_read.c
pkt_read.h
pkt_write.c
pkt_write.h
rb_tree.c ctdb:common: Fix code spelling 2023-03-24 07:01:31 +00:00
rb_tree.h ctdb:common: Fix code spelling 2023-03-24 07:01:31 +00:00
reqid.c
reqid.h ctdb:common: Fix code spelling 2023-03-24 07:01:31 +00:00
run_event.c ctdb-common: Map ENOENT for a missing event script to ENOEXEC 2024-11-21 01:42:09 +00:00
run_event.h
run_proc.c ctdb: Fix a use-after-free in run_proc 2022-10-06 15:10:20 +00:00
run_proc.h
sock_client.c
sock_client.h ctdb:common: Fix code spelling 2023-03-24 07:01:31 +00:00
sock_daemon.c ctdb-common: Separate sock_daemon's SIGHUP and SIGUSR1 handling 2022-01-17 03:43:30 +00:00
sock_daemon.h ctdb:common: Fix code spelling 2023-03-24 07:01:31 +00:00
sock_io.c ctdb-common: Fix signed/unsigned comparisons by casting 2019-07-05 05:03:24 +00:00
sock_io.h
srvid.c
srvid.h ctdb/common/srvid.h: typo fixes 2019-10-31 00:43:38 +00:00
system_socket.c ctdb-common: Reimplement ctdb_sys_have_ip() using new infrastructure 2024-10-07 15:58:38 +00:00
system_socket.h ctdb-common: Reimplement ctdb_sys_have_ip() using new infrastructure 2024-10-07 15:58:38 +00:00
system.c Fix spelling mistakes. 2022-09-12 02:29:32 +00:00
system.h
tmon.c ctdb-common: CID 1507498: Control flow issues (DEADCODE) 2022-08-01 09:19:55 +00:00
tmon.h ctdb:common: Fix code spelling 2023-03-24 07:01:31 +00:00
tunable.c ctdb-common: Add function ctdb_tunable_load_file() 2022-04-06 06:34:37 +00:00
tunable.h ctdb-common: Add function ctdb_tunable_load_file() 2022-04-06 06:34:37 +00:00