2013-09-18 19:36:56 +00:00
|
|
|
diff -up nfs-utils-1.2.8/utils/statd/sm-notify.c.orig nfs-utils-1.2.8/utils/statd/sm-notify.c
|
|
|
|
--- nfs-utils-1.2.8/utils/statd/sm-notify.c.orig 2013-04-22 12:47:20.000000000 -0400
|
|
|
|
+++ nfs-utils-1.2.8/utils/statd/sm-notify.c 2013-09-18 15:36:42.373803000 -0400
|
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>
|
|
|
|
|
|
|
|
#include "sockaddr.h"
|
|
|
|
#include "xlog.h"
|
2013-09-18 19:36:56 +00:00
|
|
|
@@ -85,6 +88,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));
|