Package: autofs / 5.0.8-2+deb8u1

14avoid_sock_cloexec.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## 14avoid_sock_cloexec.dpatch by  <hesso@pool.math.tu-berlin.de>
##
## DP: Don't use SOCK_CLOEXEC yet because 2.6.27 is not well-established
## DP: and all upstream does is a compile-team test against the glibc.


--- a/include/automount.h
+++ b/include/automount.h
@@ -38,8 +38,13 @@
 #ifdef WITH_DMALLOC
 #include <dmalloc.h>
 #endif
 
+/* Avoid using SOCK_CLOEXEC as long as 2.6.27 is still young */
+#ifdef SOCK_CLOEXEC
+# undef SOCK_CLOEXEC
+#endif
+
 #define ENABLE_CORES	1
 
 /* We MUST have the paths to mount(8) and umount(8) */
 #ifndef HAVE_MOUNT