[BusyBox-cvs] busybox/networking/libiproute ipaddress.c,1.8,1.9 ip_parse_common_args.c,1.2,1.3
Erik Andersen
andersen at codepoet.org
Mon Jan 27 17:41:22 UTC 2003
Update of /var/cvs/busybox/networking/libiproute
In directory winder:/tmp/cvs-serv4800/networking/libiproute
Modified Files:
ipaddress.c ip_parse_common_args.c
Log Message:
This seems sufficient for ifup and ifdown to actually work
as advertised. Works for me (at least with glibc)
Index: ipaddress.c
===================================================================
RCS file: /var/cvs/busybox/networking/libiproute/ipaddress.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- ipaddress.c 14 Jan 2003 08:06:07 -0000 1.8
+++ ipaddress.c 27 Jan 2003 17:41:18 -0000 1.9
@@ -524,8 +524,10 @@
exit(1);
}
if (filter.flushed == 0) {
+#if 0
if (round == 0)
fprintf(stderr, "Nothing to flush.\n");
+#endif
fflush(stdout);
return 0;
}
Index: ip_parse_common_args.c
===================================================================
RCS file: /var/cvs/busybox/networking/libiproute/ip_parse_common_args.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ip_parse_common_args.c 16 Dec 2002 06:40:37 -0000 1.2
+++ ip_parse_common_args.c 27 Jan 2003 17:41:18 -0000 1.3
@@ -47,6 +47,8 @@
if (matches(opt, "-family") == 0) {
argc--;
argv++;
+ if (! argv[1])
+ show_usage();
if (strcmp(argv[1], "inet") == 0)
preferred_family = AF_INET;
else if (strcmp(argv[1], "inet6") == 0)
More information about the busybox-cvs
mailing list