From 5a414ec7ca3423ee6ae8c35a6dcf646fe8712a1a Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Wed, 14 Jul 2010 03:41:38 +0100 Subject: [PATCH] rpc.statd: Allow monitoring of addresses without names (Closes: #579397) --- debian/changelog | 1 + debian/patches/14-allow-address-without-name.patch | 11 +++++++++++ debian/patches/series | 1 + 3 files changed, 13 insertions(+) create mode 100644 debian/patches/14-allow-address-without-name.patch diff --git a/debian/changelog b/debian/changelog index 0d5b199..67a4c16 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 index 0000000..66c084d --- /dev/null +++ b/debian/patches/14-allow-address-without-name.patch @@ -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); + } + diff --git a/debian/patches/series b/debian/patches/series index bbc16aa..05c4971 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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 -- 2.39.2