chiark / gitweb /
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 b1c2e21ae0d52f44d8db45676adf52b3ea27b2cc..395f74ca6a8dd3ebc954eb2aa4d41ae03827e10d 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.
 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 1dac168f0df46ae1c3b66633e4ffaa8a72088979..7a1b1b40c5221e928fab94279d77c3f319206cd1 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:
       pf = PF_UNIX;
       proto = 0;
     case PF_UNIX:
+#ifdef PF_NETLINK
+    case PF_NETLINK:
+#endif
       return real_socket(pf, ty, proto);
     default:
       errno = EAFNOSUPPORT;
       return real_socket(pf, ty, proto);
     default:
       errno = EAFNOSUPPORT;