[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#516091: Bus specifiers are mistakenly interpreted as relative paths



Package: brltty
Version: 3.10~r3724-1+b1
Severity: important

Aldo <info@brlspeak.net> writes:

> after having succesfully installed Debian 5.0 Lenny on my Asus laptop, I
> discovered after rebooting that my braille display wasn't started, while it
> had worked during installation.
>
> Then I opened a console, became root and typed:
> killall brltty (to be sure nothing was running ... and I was right,
> something but wrongly configured was running ...)
> then brltty -b al -d USB: -t de
> and ..... that was running perfectly as wanted!
>
> I edited /etc/brltty.conf because I noticed the /dev/ on the
> braille-device line before USB:

I can confirm this bug.  Its root cause is the following stupid piece of shell code:

                     2)
                        brailleDevice=${parameter}
                        test "`expr "${brailleDevice}" : "/"`" -eq 0 && \
                            brailleDevice="/dev/${brailleDevice}"
                        test "`expr "${brailleDevice}" : "/dev/tts/"`" -eq 9 && \
                            brailleDevice="/dev/ttyS`expr substr ${brailleDevice} 10 2`"
                        ;;

The check for a leading slash should have checked if the string contains
any colons first.

This should get fixed ASAP.

-- 
CYa,
  ⡍⠁⠗⠊⠕ | Debian Developer <URL:http://debian.org/>
  .''`. | Get my public key via finger mlang/key@db.debian.org
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-      <URL:http://delysid.org/>  <URL:http://www.staff.tugraz.at/mlang/>



Reply to: