Paul Fox writes:
authorEric Andersen <andersen@codepoet.org>
Tue, 29 Jun 2004 00:48:30 +0000 (00:48 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 29 Jun 2004 00:48:30 +0000 (00:48 -0000)
hi --

working with ifupdown, i've found a couple of buglets --
the wrong string is passed to an error message.

paul

networking/ifupdown.c

index ebf528d..a8a7464 100644 (file)
@@ -799,13 +799,13 @@ static struct interfaces_file_t *read_interfaces(char *filename)
 
                                currif->address_family = get_address_family(addr_fams, address_family_name);
                                if (!currif->address_family) {
-                                       bb_error_msg("unknown address type \"%s\"", buf);
+                                       bb_error_msg("unknown address type \"%s\"", address_family_name);
                                        return NULL;
                                }
 
                                currif->method = get_method(currif->address_family, method_name);
                                if (!currif->method) {
-                                       bb_error_msg("unknown method \"%s\"", buf);
+                                       bb_error_msg("unknown method \"%s\"", method_name);
                                        return NULL;
                                }