Removed some fuzz errors from smnotify-earlyexit.patch

This commit is contained in:
Steve Dickson 2008-10-14 18:59:05 +00:00
parent 8ee96464d9
commit 8ce9ec1067

View File

@ -8,12 +8,11 @@ Date: Tue Oct 14 14:36:58 2008 -0400
Signed-off-by: Steve Dickson <steved@redhat.com>
diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c
index 76a378c..7a7ae1a 100644
--- a/utils/statd/sm-notify.c
+++ b/utils/statd/sm-notify.c
@@ -189,9 +189,13 @@ usage: fprintf(stderr,
exit(1);
diff -up nfs-utils-1.1.3/utils/statd/sm-notify.c.orig nfs-utils-1.1.3/utils/statd/sm-notify.c
--- nfs-utils-1.1.3/utils/statd/sm-notify.c.orig 2008-10-14 14:51:49.000000000 -0400
+++ nfs-utils-1.1.3/utils/statd/sm-notify.c 2008-10-14 14:52:58.000000000 -0400
@@ -154,9 +154,13 @@ usage: fprintf(stderr,
return 1;
}
+ log_syslog = 1;
@ -26,7 +25,7 @@ index 76a378c..7a7ae1a 100644
exit(0);
}
@@ -207,6 +211,12 @@ usage: fprintf(stderr,
@@ -171,6 +175,12 @@ usage: fprintf(stderr,
backup_hosts(_SM_DIR_PATH, _SM_BAK_PATH);
get_hosts(_SM_BAK_PATH);
@ -39,7 +38,7 @@ index 76a378c..7a7ae1a 100644
/* Get and update the NSM state. This will call sync() */
nsm_state = nsm_get_state(opt_update_state);
set_kernel_nsm_state(nsm_state);
@@ -215,9 +225,6 @@ usage: fprintf(stderr,
@@ -179,9 +189,6 @@ usage: fprintf(stderr,
if (!opt_quiet)
printf("Backgrounding to notify hosts...\n");
@ -47,5 +46,5 @@ index 76a378c..7a7ae1a 100644
- log_syslog = 1;
-
if (daemon(0, 0) < 0) {
nsm_log(LOG_ERR, "unable to background: %s",
nsm_log(LOG_WARNING, "unable to background: %s",
strerror(errno));