ctdb/failover/statd_callout.c: add PATH_MAX workaround
authorMichael Tokarev <mjt@tls.msk.ru>
Mon, 6 Jan 2025 19:38:32 +0000 (22:38 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 12 Jan 2025 20:16:00 +0000 (23:16 +0300)
Gbp-Pq: Name ctdb-failover-statd_callout-PATH_MAX-workaround.patch

ctdb/failover/statd_callout.c

index 2f703560b29e9960c81f31e3466357fd723e1cc0..53991b1c383dd63a92d45a1c4210dbd267320981 100644 (file)
@@ -25,6 +25,9 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#ifndef PATH_MAX
+# define PATH_MAX 1024
+#endif
 
 /*
  * A configuration file, created by statd_callout_helper, containing