]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
rpc.statd: Allow monitoring of addresses without names (Closes: #579397)
authorBen Hutchings <ben@decadent.org.uk>
Wed, 14 Jul 2010 02:41:38 +0000 (03:41 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 15 Jul 2010 00:47:24 +0000 (01:47 +0100)
debian/changelog
debian/patches/14-allow-address-without-name.patch [new file with mode: 0644]
debian/patches/series

index 0d5b1991a0b96d6ac262485693dda1da5b27af57..67a4c166e9efd0b8e77183ecc00d08b91de5892d 100644 (file)
@@ -1,6 +1,7 @@
 nfs-utils (1:1.2.2-3) UNRELEASED; urgency=low
 
   * mount.nfs: Preserve explicit port=2049 option (Closes: #582003)
+  * rpc.statd: Allow monitoring of addresses without names (Closes: #579397)
 
  -- Ben Hutchings <ben@decadent.org.uk>  Wed, 14 Jul 2010 03:37:03 +0100
 
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);
+       }
index bbc16aa4bb6926d1cb794f4e9aa58edaa6b6d1c4..05c49715cc91a79804a5577faca66b307cd7adbd 100644 (file)
@@ -5,3 +5,4 @@
 11-532048-reduce-verbosity.patch
 12-svcgssd-document-n-option.patch
 13-preserve-explicit-port-2049.patch
+14-allow-address-without-name.patch