Blame SOURCES/nfs-utils-1.2.3-sm-notify-res_init.patch

64c563
diff -up nfs-utils-1.3.0/utils/statd/sm-notify.c.orig nfs-utils-1.3.0/utils/statd/sm-notify.c
64c563
--- nfs-utils-1.3.0/utils/statd/sm-notify.c.orig	2017-04-27 14:10:28.866713955 -0400
64c563
+++ nfs-utils-1.3.0/utils/statd/sm-notify.c	2017-04-27 14:10:50.454363993 -0400
64c563
@@ -28,6 +28,9 @@
64c563
 #include <netdb.h>
64c563
 #include <errno.h>
64c563
 #include <grp.h>
64c563
+#include <netinet/in.h>
64c563
+#include <arpa/nameser.h>
64c563
+#include <resolv.h>
64c563
 
64c563
 #include "conffile.h"
64c563
 #include "sockaddr.h"
64c563
@@ -91,6 +94,7 @@ smn_lookup(const char *name)
64c563
 	};
64c563
 	int error;
64c563
 
64c563
+	res_init();
64c563
 	error = getaddrinfo(name, NULL, &hint, &ai;;
64c563
 	if (error != 0) {
64c563
 		xlog(D_GENERAL, "getaddrinfo(3): %s", gai_strerror(error));