[netfilter-cvslog] r6828 - trunk/iptables
kaber at trash.net
kaber at trash.net
Thu May 10 17:00:39 CEST 2007
Author: kaber at trash.net
Date: 2007-05-10 17:00:39 +0200 (Thu, 10 May 2007)
New Revision: 6828
Modified:
trunk/iptables/ip6tables-restore.c
trunk/iptables/ip6tables-save.c
trunk/iptables/iptables-restore.c
trunk/iptables/iptables-save.c
Log:
Fix missing newlines in iptables-save/restore output (Pavol Rusnak <prusnak at suse.cz>)
Bugzilla #568
Modified: trunk/iptables/ip6tables-restore.c
===================================================================
--- trunk/iptables/ip6tables-restore.c 2007-05-08 01:06:49 UTC (rev 6827)
+++ trunk/iptables/ip6tables-restore.c 2007-05-10 15:00:39 UTC (rev 6828)
@@ -154,13 +154,13 @@
if (optind == argc - 1) {
in = fopen(argv[optind], "r");
if (!in) {
- fprintf(stderr, "Can't open %s: %s", argv[optind],
+ fprintf(stderr, "Can't open %s: %s\n", argv[optind],
strerror(errno));
exit(1);
}
}
else if (optind < argc) {
- fprintf(stderr, "Unknown arguments found on commandline");
+ fprintf(stderr, "Unknown arguments found on commandline\n");
exit(1);
}
else in = stdin;
Modified: trunk/iptables/ip6tables-save.c
===================================================================
--- trunk/iptables/ip6tables-save.c 2007-05-08 01:06:49 UTC (rev 6827)
+++ trunk/iptables/ip6tables-save.c 2007-05-10 15:00:39 UTC (rev 6828)
@@ -351,7 +351,7 @@
}
if (optind < argc) {
- fprintf(stderr, "Unknown arguments found on commandline");
+ fprintf(stderr, "Unknown arguments found on commandline\n");
exit(1);
}
Modified: trunk/iptables/iptables-restore.c
===================================================================
--- trunk/iptables/iptables-restore.c 2007-05-08 01:06:49 UTC (rev 6827)
+++ trunk/iptables/iptables-restore.c 2007-05-10 15:00:39 UTC (rev 6828)
@@ -157,13 +157,13 @@
if (optind == argc - 1) {
in = fopen(argv[optind], "r");
if (!in) {
- fprintf(stderr, "Can't open %s: %s", argv[optind],
+ fprintf(stderr, "Can't open %s: %s\n", argv[optind],
strerror(errno));
exit(1);
}
}
else if (optind < argc) {
- fprintf(stderr, "Unknown arguments found on commandline");
+ fprintf(stderr, "Unknown arguments found on commandline\n");
exit(1);
}
else in = stdin;
Modified: trunk/iptables/iptables-save.c
===================================================================
--- trunk/iptables/iptables-save.c 2007-05-08 01:06:49 UTC (rev 6827)
+++ trunk/iptables/iptables-save.c 2007-05-10 15:00:39 UTC (rev 6828)
@@ -368,7 +368,7 @@
}
if (optind < argc) {
- fprintf(stderr, "Unknown arguments found on commandline");
+ fprintf(stderr, "Unknown arguments found on commandline\n");
exit(1);
}
More information about the netfilter-cvslog
mailing list