sm-notify needs to call res_init() before each try (bz 625531)
Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
parent
0fb3f74120
commit
1560f8a628
21
nfs-utils-1.2.3-sm-notify-res_init.patch
Normal file
21
nfs-utils-1.2.3-sm-notify-res_init.patch
Normal file
@ -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));
|
@ -23,6 +23,7 @@ Patch001: nfs-utils-1.2.4-rc1.patch
|
||||
Patch100: nfs-utils-1.2.1-statdpath-man.patch
|
||||
Patch101: nfs-utils-1.2.2-statdpath.patch
|
||||
Patch102: nfs-utils-1.2.1-exp-subtree-warn-off.patch
|
||||
Patch103: nfs-utils-1.2.3-sm-notify-res_init.patch
|
||||
|
||||
Group: System Environment/Daemons
|
||||
Provides: exportfs = %{epoch}:%{version}-%{release}
|
||||
@ -76,6 +77,7 @@ This package also contains the mount.nfs and umount.nfs program.
|
||||
%patch100 -p1
|
||||
%patch101 -p1
|
||||
%patch102 -p1
|
||||
%patch103 -p1
|
||||
|
||||
# Remove .orig files
|
||||
find . -name "*.orig" | xargs rm -f
|
||||
@ -253,6 +255,7 @@ fi
|
||||
%changelog
|
||||
* Fri Oct 15 2010 Steve Dickson <steved@redhat.com> 1.2.3-2
|
||||
- Initscripts do not conform to LSB specification (bz 621562)
|
||||
- sm-notify needs to call res_init() before each try (bz 625531)
|
||||
|
||||
* Thu Oct 14 2010 Steve Dickson <steved@redhat.com> 1.2.3-1
|
||||
- Updated to latest upstream release: nfs-utils-1-2-4-rc1
|
||||
|
Loading…
Reference in New Issue
Block a user