noip.c: Allow PF_NETLINK sockets. 1.0.8
authorMark Wooding <mdw@distorted.org.uk>
Tue, 13 Mar 2012 21:30:14 +0000 (21:30 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 13 Mar 2012 21:34:30 +0000 (21:34 +0000)
Anything fiddling with them probably knows what its doing.  Chromium
fails unless it can get one.

debian/changelog
noip.c

index b1c2e21..395f74c 100644 (file)
@@ -1,3 +1,9 @@
+preload-hacks (1.0.8) experimental; urgency=low
+
+  * Allow PF_NETLINK sockets, since Chromium is getting more ambitious.
+
+ -- Mark Wooding <mdw@distorted.org.uk>  Tue, 13 Mar 2012 21:27:52 +0000
+
 preload-hacks (1.0.7) experimental; urgency=low
 
   * Fix bashism (`export VAR=VALUE') in driver scripts.
diff --git a/noip.c b/noip.c
index 1dac168..7a1b1b4 100644 (file)
--- a/noip.c
+++ b/noip.c
@@ -841,6 +841,9 @@ int socket(int pf, int ty, int proto)
       pf = PF_UNIX;
       proto = 0;
     case PF_UNIX:
+#ifdef PF_NETLINK
+    case PF_NETLINK:
+#endif
       return real_socket(pf, ty, proto);
     default:
       errno = EAFNOSUPPORT;