- blacklisting is not working, use "install X /bin/(true|false)" test instead - return private exit code 150 for disabled ipv6 support - use script name for output messages
31 lines
1006 B
Diff
31 lines
1006 B
Diff
diff -up iptables-1.3.8/ip6tables.c.cloexec iptables-1.3.8/ip6tables.c
|
|
--- iptables-1.3.8/ip6tables.c.cloexec 2007-10-02 13:42:23.000000000 +0200
|
|
+++ iptables-1.3.8/ip6tables.c 2007-10-02 13:42:54.000000000 +0200
|
|
@@ -1121,6 +1121,11 @@ static int compatible_revision(const cha
|
|
strerror(errno));
|
|
exit(1);
|
|
}
|
|
+ if (fcntl(sockfd, F_SETFD, FD_CLOEXEC) == -1) {
|
|
+ fprintf(stderr, "Could not set close on exec: %s\n",
|
|
+ strerror(errno));
|
|
+ exit(1);
|
|
+ }
|
|
|
|
strcpy(rev.name, name);
|
|
rev.revision = revision;
|
|
diff -up iptables-1.3.8/iptables.c.cloexec iptables-1.3.8/iptables.c
|
|
--- iptables-1.3.8/iptables.c.cloexec 2007-10-02 13:42:09.000000000 +0200
|
|
+++ iptables-1.3.8/iptables.c 2007-10-02 13:42:25.000000000 +0200
|
|
@@ -1149,6 +1149,11 @@ static int compatible_revision(const cha
|
|
strerror(errno));
|
|
exit(1);
|
|
}
|
|
+ if (fcntl(sockfd, F_SETFD, FD_CLOEXEC) == -1) {
|
|
+ fprintf(stderr, "Could not set close on exec: %s\n",
|
|
+ strerror(errno));
|
|
+ exit(1);
|
|
+ }
|
|
|
|
load_iptables_ko(modprobe, 1);
|
|
|