diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-23 23:04:15 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-23 23:04:15 +0200 |
| commit | a85b66e0f906fedbba7fbaf5ea9ac0dbfc0e4916 (patch) | |
| tree | 2002c858c2dfd5242fc60ecdf3824cc889b33049 | |
| parent | 599ae1eb9f20b4731735e14f9bac6371ad89b6d7 (diff) | |
| download | busybox-w32-a85b66e0f906fedbba7fbaf5ea9ac0dbfc0e4916.tar.gz busybox-w32-a85b66e0f906fedbba7fbaf5ea9ac0dbfc0e4916.tar.bz2 busybox-w32-a85b66e0f906fedbba7fbaf5ea9ac0dbfc0e4916.zip | |
ifconfig: do not truncate interface names. closes bug 1795
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | networking/interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c index a59f310a6..659ac36ea 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
| @@ -1002,7 +1002,7 @@ static void ife_print(struct interface *ptr) | |||
| 1002 | if (hw == NULL) | 1002 | if (hw == NULL) |
| 1003 | hw = get_hwntype(-1); | 1003 | hw = get_hwntype(-1); |
| 1004 | 1004 | ||
| 1005 | printf("%-9.9s Link encap:%s ", ptr->name, hw->title); | 1005 | printf("%-9s Link encap:%s ", ptr->name, hw->title); |
| 1006 | /* For some hardware types (eg Ash, ATM) we don't print the | 1006 | /* For some hardware types (eg Ash, ATM) we don't print the |
| 1007 | hardware address if it's null. */ | 1007 | hardware address if it's null. */ |
| 1008 | if (hw->print != NULL | 1008 | if (hw->print != NULL |
| @@ -1178,7 +1178,6 @@ static int for_all_interfaces(int (*doit) (struct interface *, void *), | |||
| 1178 | return -1; | 1178 | return -1; |
| 1179 | for (ife = int_list; ife; ife = ife->next) { | 1179 | for (ife = int_list; ife; ife = ife->next) { |
| 1180 | int err = doit(ife, cookie); | 1180 | int err = doit(ife, cookie); |
| 1181 | |||
| 1182 | if (err) | 1181 | if (err) |
| 1183 | return err; | 1182 | return err; |
| 1184 | } | 1183 | } |
