2017-01-19 19:19:05 +00:00
|
|
|
diff -up nfs-utils-1.3.4/utils/statd/sm-notify.c.orig nfs-utils-1.3.4/utils/statd/sm-notify.c
|
|
|
|
--- nfs-utils-1.3.4/utils/statd/sm-notify.c.orig 2016-12-17 14:13:50.148087245 -0500
|
|
|
|
+++ nfs-utils-1.3.4/utils/statd/sm-notify.c 2016-12-17 14:14:13.278001479 -0500
|
2010-10-15 20:50:09 +00:00
|
|
|
@@ -28,6 +28,9 @@
|
|
|
|
#include <netdb.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <grp.h>
|
|
|
|
+#include <netinet/in.h>
|
|
|
|
+#include <arpa/nameser.h>
|
|
|
|
+#include <resolv.h>
|
|
|
|
|
2017-01-19 19:19:05 +00:00
|
|
|
#include "conffile.h"
|
2010-10-15 20:50:09 +00:00
|
|
|
#include "sockaddr.h"
|
2017-01-19 19:19:05 +00:00
|
|
|
@@ -89,6 +92,7 @@ smn_lookup(const char *name)
|
2010-10-15 20:50:09 +00:00
|
|
|
};
|
|
|
|
int error;
|
|
|
|
|
|
|
|
+ res_init();
|
|
|
|
error = getaddrinfo(name, NULL, &hint, &ai);
|
|
|
|
if (error != 0) {
|
|
|
|
xlog(D_GENERAL, "getaddrinfo(3): %s", gai_strerror(error));
|