[PATCH] CTDB - avoid running event scripts with multiple '.'s (bug 13070)

Amitay Isaacs amitay at gmail.com
Tue Oct 17 03:19:36 UTC 2017


Hi,

Package managers during upgrade can leave copies of event scripts with
suffixes in case the event scripts had been modified.  This has an
unexpected side effect of running the copies of event scripts and interfere
with normal operation of ctdb.

Here is a patch that ignores any scripts with multiple '.'s in the script
name.  CTDB expects the event scripts names to follow '[0-9][0-9]\.[a-z]+"
format.  So any event script with multiple '.'s will be ignored.

Please review and push.

Amitay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patch
Type: text/x-patch
Size: 2850 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20171017/e57d4a06/ctdb.bin>


More information about the samba-technical mailing list