If events script run during package upgrade, events scripts will be duplicated (with .rpmnew on RH, and .dpkg-new on Debian). This will lead to error, especially for 10.interface ("IP reallocation failed with result -1") The function script_filter (https://git.samba.org/?p=samba.git;a=blob;f=ctdb/common/run_event.c;h=e5d562c96b3926600efc0cf3b0e4d370c87a5c55;hb=HEAD#l40) should be improved to skip files ending with .cfgsaved, .rpmsave, .rpmorig, .rpmnew, .swp, .dpkg-old, .dpkg-dist, .dpkg-new, .dpkg-tmp) I can write a patch inspired by run-parts (https://anonscm.debian.org/cgit/users/clint/debianutils.git/tree/run-parts.c), but I don't know if using regexp is common practice in samba codebase. Please tell me what to do!
Created attachment 13707 [details] Patches for v4-7
Created attachment 13708 [details] Patches for v4-6
Hi Karolin, This is ready for 4.7, 4.6. Thanks...
(In reply to Martin Schwenke from comment #3) Pushed to autobuild-v4-{7,6}-test.
(In reply to Karolin Seeger from comment #4) Pushed to both branches. Closing out bug report. Thanks!