Firestarter fails to run on locales other than English
Bug #222038 reported by
Obelich
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firestarter |
Won't Fix
|
Critical
|
|||
firestarter (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi we have ubuntu 8.04 and install firestart in the spanish interface firestarter is not working say the dispositive eth0 is not ready buth in english interface is runing perfectly, i switch the interface from spanish to english to paste the text and i found it run correctly.
Related branches
Changed in firestarter: | |
status: | New → Confirmed |
Changed in firestarter: | |
status: | Unknown → New |
Changed in firestarter: | |
status: | New → Confirmed |
Changed in firestarter: | |
status: | Incomplete → New |
Changed in firestarter (Ubuntu): | |
status: | New → Confirmed |
Changed in firestarter: | |
importance: | Unknown → Critical |
Changed in firestarter: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
The problem is in the (generated) file /etc/firestarte r/firestarter. sh. The following lines:
IP=`/sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut -d \\ -f 1` sbin/ifconfig $IF | grep Mas | cut -d : -f 4` /sbin/ifconfig $IF |grep Bcast: | cut -d : -f 3 | cut -d \\ -f 1`
MASK=`/
BCAST=`
fails when the local is other than English, because they look up several keyword ("Mas", "Bcast:") which doesn't appears in ifconfig in Spanish. Example:
ricardo@kadath:~$ LANG=C ifconfig eth0
collisions: 0 txqueuelen:1000
Interrupt: 18 Base address:0xa000
eth0 Link encap:Ethernet HWaddr 00:18:f3:53:b2:9a
inet addr:192.168.2.100 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2736 errors:0 dropped:0 overruns:0 frame:0
TX packets:2634 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2917432 (2.7 MB) TX bytes:368744 (360.1 KB)
ricardo@kadath:~$ ifconfig eth0 192.168. 2.100 Difusión: 192.168. 2.255 Máscara: 255.255. 255.0
colisiones: 0 txqueuelen:1000
Interrupción :18 Dirección base: 0xa000
eth0 Link encap:Ethernet direcciónHW 00:18:f3:53:b2:9a
inet dirección:
ARRIBA DIFUSIÓN CORRIENDO MULTICAST MTU:1500 Metric:1
RX packets:2723 errors:0 dropped:0 overruns:0 frame:0
TX packets:2620 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2908959 (2.7 MB) TX bytes:365950 (357.3 KB)
As a workaround, you can hack the /etc/firestarte r/firestarter. sh file, replacing the three above lines with the following:
IP=`LANG=C /sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut -d \\ -f 1`
MASK=`LANG=C /sbin/ifconfig $IF | grep Mas | cut -d : -f 4`
BCAST=`LANG=C /sbin/ifconfig $IF |grep Bcast: | cut -d : -f 3 | cut -d \\ -f 1`