]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blobdiff - nfs-utils/patches/nfs-utils-1.2.3-sm-notify-res_init.patch
nfs-utils: Update to 1.2.7.
[people/stevee/ipfire-3.x.git] / nfs-utils / patches / nfs-utils-1.2.3-sm-notify-res_init.patch
diff --git a/nfs-utils/patches/nfs-utils-1.2.3-sm-notify-res_init.patch b/nfs-utils/patches/nfs-utils-1.2.3-sm-notify-res_init.patch
new file mode 100644 (file)
index 0000000..3ce55eb
--- /dev/null
@@ -0,0 +1,21 @@
+diff -up nfs-utils-1.2.3/utils/statd/sm-notify.c.orig nfs-utils-1.2.3/utils/statd/sm-notify.c
+--- nfs-utils-1.2.3/utils/statd/sm-notify.c.orig       2010-09-28 08:24:16.000000000 -0400
++++ nfs-utils-1.2.3/utils/statd/sm-notify.c    2010-10-15 16:44:43.487119601 -0400
+@@ -28,6 +28,9 @@
+ #include <netdb.h>
+ #include <errno.h>
+ #include <grp.h>
++#include <netinet/in.h>
++#include <arpa/nameser.h>
++#include <resolv.h>
+ #include "sockaddr.h"
+ #include "xlog.h"
+@@ -84,6 +87,7 @@ smn_lookup(const char *name)
+       };
+       int error;
++      res_init();
+       error = getaddrinfo(name, NULL, &hint, &ai);
+       if (error != 0) {
+               xlog(D_GENERAL, "getaddrinfo(3): %s", gai_strerror(error));