[arpwatch] exit with zero error code (#699285)

Miroslav Lichvar mlichvar at fedoraproject.org
Fri Jul 8 13:48:34 UTC 2011


commit 18732da0b37388af13454c02385f8cb603cdc7cd
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Fri Jul 8 15:38:58 2011 +0200

    exit with zero error code (#699285)

 arpwatch-exitcode.patch |   12 ++++++++++++
 arpwatch.spec           |    2 ++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/arpwatch-exitcode.patch b/arpwatch-exitcode.patch
new file mode 100644
index 0000000..7ec75be
--- /dev/null
+++ b/arpwatch-exitcode.patch
@@ -0,0 +1,12 @@
+diff -up arpwatch-2.1a15/arpwatch.c.exitcode arpwatch-2.1a15/arpwatch.c
+--- arpwatch-2.1a15/arpwatch.c.exitcode	2011-07-08 15:35:28.758414483 +0200
++++ arpwatch-2.1a15/arpwatch.c	2011-07-08 15:35:31.539417016 +0200
+@@ -782,7 +782,7 @@ die(int signo)
+ 
+ 	syslog(LOG_DEBUG, "exiting");
+ 	checkpoint(0);
+-	exit(1);
++	exit(0);
+ }
+ 
+ RETSIGTYPE
diff --git a/arpwatch.spec b/arpwatch.spec
index 731f097..aa46a5c 100644
--- a/arpwatch.spec
+++ b/arpwatch.spec
@@ -33,6 +33,7 @@ Patch7: arpwatch-scripts.patch
 Patch8: arpwatch-2.1a15-nolocalpcap.patch
 Patch9: arpwatch-2.1a15-bogon.patch
 Patch10: arpwatch-2.1a15-extraman.patch
+Patch11: arpwatch-exitcode.patch
 
 %description
 The arpwatch package contains arpwatch and arpsnmp.  Arpwatch and
@@ -57,6 +58,7 @@ network.
 %patch8 -p1 -b .nolocalpcap
 %patch9 -p1 -b .bogon
 %patch10 -p1 -b .extraman
+%patch11 -p1 -b .exitcode
 
 %build
 %configure


More information about the scm-commits mailing list