rpms/nfs-utils/F-10 nfs-utils-1.1.4-sm-notify-typo.patch, NONE, 1.1 nfs-utils.spec, 1.192, 1.193
Steve Dickson
steved at fedoraproject.org
Sat Dec 6 13:53:10 UTC 2008
Author: steved
Update of /cvs/pkgs/rpms/nfs-utils/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18338
Modified Files:
nfs-utils.spec
Added Files:
nfs-utils-1.1.4-sm-notify-typo.patch
Log Message:
sm-notify: always exiting without any notification.
nfs-utils-1.1.4-sm-notify-typo.patch:
--- NEW FILE nfs-utils-1.1.4-sm-notify-typo.patch ---
commit 5d8b800b8438222a55c4698c86b558b15717aa21
Author: Steve Dickson <steved at redhat.com>
Date: Sat Dec 6 08:31:29 2008 -0500
sm-notify: always exiting without any notification
Added curly brackets around the record_pid() check which
stop sm-notify from exiting when a pid file does not
exist.
Signed-off-by: Steve Dickson <steved at redhat.com>
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
index 7a7ae1a..d8e2c01 100644
--- a/utils/statd/sm-notify.c
+++ b/utils/statd/sm-notify.c
@@ -193,10 +193,11 @@ usage: fprintf(stderr,
openlog("sm-notify", LOG_PID, LOG_DAEMON);
if (strcmp(_SM_BASE_PATH, BASEDIR) == 0) {
- if (record_pid() == 0 && force == 0 && opt_update_state == 1)
+ if (record_pid() == 0 && force == 0 && opt_update_state == 1) {
/* already run, don't try again */
nsm_log(LOG_NOTICE, "Already notifying clients; Exiting!");
exit(0);
+ }
}
if (opt_srcaddr) {
Index: nfs-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/F-10/nfs-utils.spec,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -r1.192 -r1.193
--- nfs-utils.spec 1 Dec 2008 14:53:59 -0000 1.192
+++ nfs-utils.spec 6 Dec 2008 13:52:40 -0000 1.193
@@ -2,7 +2,7 @@
Name: nfs-utils
URL: http://sourceforge.net/projects/nfs
Version: 1.1.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 1
# group all 32bit related archs
@@ -25,6 +25,7 @@
Patch00: nfs-utils-1.0.5-statdpath.patch
Patch01: nfs-utils-1.1.0-smnotify-path.patch
Patch02: nfs-utils-1.1.0-exp-subtree-warn-off.patch
+Patch03: nfs-utils-1.1.4-sm-notify-typo.patch
%if %{enablefscache}
Patch90: nfs-utils-1.1.0-mount-fsc.patch
@@ -78,6 +79,7 @@
%patch00 -p1
%patch01 -p1
%patch02 -p1
+%patch03 -p1
%if %{enablefscache}
%patch90 -p1
@@ -241,6 +243,9 @@
%attr(4755,root,root) /sbin/umount.nfs4
%changelog
+* Sat Dec 6 2008 Steve Dickson <steved at redhat.com> 1.1.4-3
+- sm-notify: always exiting without any notification.
+
* Mon Dec 1 2008 Steve Dickson <steved at redhat.com> 1.1.4-2
- Make sure /proc/fs/nfsd exists when the nfs init script
does the exports (bz 473396)
More information about the fedora-extras-commits
mailing list