[PATCH] mdev regex fix

Natanael Copa natanael.copa at gmail.com
Fri May 23 05:36:42 PDT 2008


forgot to attach the patch.
sorry

On Fri, 2008-05-23 at 14:30 +0200, Natanael Copa wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-1.10.2-mdev-regex-fix.patch
Type: text/x-patch
Size: 249 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080523/ff5aa5ca/attachment.bin 


More information about the busybox mailing list