rpms/dnscap/devel dnscap-1.0-system.patch, NONE, 1.1 dnscap.spec, 1.1, 1.2

Adam Tkac (atkac) fedora-extras-commits at redhat.com
Tue Aug 7 13:14:36 UTC 2007


Author: atkac

Update of /cvs/pkgs/rpms/dnscap/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19835

Modified Files:
	dnscap.spec 
Added Files:
	dnscap-1.0-system.patch 
Log Message:
- handle return value from system()


dnscap-1.0-system.patch:

--- NEW FILE dnscap-1.0-system.patch ---
diff -up dnscap-20070807cvs/dnscap.c.system dnscap-20070807cvs/dnscap.c
--- dnscap-20070807cvs/dnscap.c.system	2007-08-07 15:13:56.000000000 +0200
+++ dnscap-20070807cvs/dnscap.c	2007-08-07 15:14:30.000000000 +0200
@@ -1468,7 +1468,8 @@ dumper_close(void) {
 		if (cmd != NULL) {
 			setuid(getuid());
 			setgid(getgid());
-			system(cmd);
+			if (system(cmd) == -1)
+				abort ();
 			free(cmd);
 		}
 	}


Index: dnscap.spec
===================================================================
RCS file: /cvs/pkgs/rpms/dnscap/devel/dnscap.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dnscap.spec	7 Aug 2007 13:06:11 -0000	1.1
+++ dnscap.spec	7 Aug 2007 13:14:03 -0000	1.2
@@ -1,6 +1,6 @@
 Name:           dnscap
 Version:        1.0
-Release:        0.3.20070807cvs%{?dist}
+Release:        0.4.20070807cvs%{?dist}
 Summary:        DNS traffic capture utility
 
 Group:          Applications/Internet
@@ -15,6 +15,7 @@
 
 Patch0:         dnscap-1.0-isc_list.patch
 Patch1:         dnscap-1.0-warns.patch
+Patch2:         dnscap-1.0-system.patch
 
 %description
 dnscap is a network capture utility designed specifically for DNS traffic. It
@@ -27,6 +28,7 @@
 
 %patch0 -p1 -b .isc_list
 %patch1 -p1 -b .warns
+%patch2 -p1 -b .system
 
 %build
 autoreconf --install
@@ -46,6 +48,9 @@
 %{_mandir}/man1/dnscap.1.gz
 
 %changelog
+* Tue Aug 7 2007 Adam Tkac <atkac redhat com> 1.0-0.4.20070807cvs
+- handle return value of system() function
+
 * Tue Aug 7 2007 Adam Tkac <atkac redhat com> 1.0-0.3.20070807cvs
 - updated to latest cvs
 - use libbind's isc/list API




More information about the fedora-extras-commits mailing list