[netfilter-cvslog] r3361 - trunk/nfsim/tools

rusty at netfilter.org rusty at netfilter.org
Tue Dec 14 02:54:22 CET 2004


Author: rusty at netfilter.org
Date: 2004-12-14 02:54:22 +0100 (Tue, 14 Dec 2004)
New Revision: 3361

Modified:
   trunk/nfsim/tools/iptables.c
Log:
Fix "cmd" left over: should be argv[0]


Modified: trunk/nfsim/tools/iptables.c
===================================================================
--- trunk/nfsim/tools/iptables.c	2004-12-14 01:32:14 UTC (rev 3360)
+++ trunk/nfsim/tools/iptables.c	2004-12-14 01:54:22 UTC (rev 3361)
@@ -40,7 +40,7 @@
 	char buf[4096] = { 0 };
 
 	if (pipe(childfd) != 0)
-		barf_perror("%s pipe", cmd);
+		barf_perror("%s pipe", argv[0]);
 
 	child = fork();
 	switch (child) {
@@ -79,7 +79,7 @@
 	}
 
 	if (waitpid(child, &status, 0) <= 0)
-		barf_perror("Waiting for %s child", cmd);
+		barf_perror("Waiting for %s child", argv[0]);
 
 	close(childfd[0]);
 




More information about the netfilter-cvslog mailing list