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

Re: replacing makedev

> 1) It does a nasty 'eval "major_$device=$major"', where $device and
> $major come from /proc/devices, for every single device listed.  This
> breaks with devices that have names that aren't allowed as shell
> variable names, such as "device-mapper".  This is also apparent in bug
> #104254.  It wouldn't be as annoying if it only happened when trying to
> create said devices, but breakage occurs when trying to use makedev at
> all.

This can be fixed without a rewrite; to deal with the hyphen, one could
change $device to ${device/-/_}.  As for the % stuff (does this ever
happen when devfs isn't compiled in?), one could change $device to

To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: