[PATCH] mdev regex fix

Natanael Copa natanael.copa at gmail.com
Fri May 23 05:30:28 PDT 2008


mdev in busybox-1.10.2 has a bug:

mdev.conf:
zap(.+)		root:dialout 0660 =zap/%1

When expanding the %1 regex, string will not be terminated with a '\0'
properly causing interesting results in /dev. 

# ls /dev/zap/
channel  ctlS
    ctlT
    pseudo   timer


Attatched patch fixes the issue. (for 1.10.2 + current patches)

I don't think it applies cleanly to svn but it should be trivial to
merge it manually.

Thanks!

-nc



More information about the busybox mailing list