]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/patches/14-allow-address-without-name.patch
rpc.statd: Allow monitoring of addresses without names (Closes: #579397)
[nfs-utils.git] / debian / patches / 14-allow-address-without-name.patch
diff --git a/debian/patches/14-allow-address-without-name.patch b/debian/patches/14-allow-address-without-name.patch
new file mode 100644 (file)
index 0000000..66c084d
--- /dev/null
@@ -0,0 +1,11 @@
+--- nfs-utils-1.2.2.orig/utils/statd/hostname.c
++++ nfs-utils-1.2.2/utils/statd/hostname.c
+@@ -212,7 +212,7 @@
+                                       buf, (socklen_t)sizeof(buf));
+               freeaddrinfo(ai);
+               if (!result)
+-                      return NULL;
++                      return strdup(hostname);
+               return strdup(buf);
+       }