Bug 567

Summary: modprobe don't ignore tabulation symbols in modules.dep
Product: Busybox Reporter: Leonid <lly.dev>
Component: OtherAssignee: unassigned
Status: VERIFIED FIXED    
Severity: normal CC: busybox-cvs
Priority: P3    
Version: 1.14.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target: linux-mips
Build: 1.14.3
Attachments: Sample modules.dep
This patch solves problem for me

Description Leonid 2009-08-12 17:53:28 UTC
Created attachment 597 [details]
Sample modules.dep

modprobe don't ignore tabulation symbols in modules.dep for a list of dependent modules. Symptoms:
==============================================
$ modprobe audio                                                              
modprobe: failed to load module soundcore: Operation not permitted
==============================================

Key part of strace output:
==============================================
...
close(4)                                = 0
uname({sys="Linux", node="€O", ...})    = 0
open("\t/opt/lib/modules/2.4.37.4/kernel/drivers/sound/soundcore.o", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
ioctl(2147483647, TIOCNXCL, 0x7fff7930) = -1 EBADF (Bad file descriptor)
brk(0x4fc000)                           = 0x4fc000
write(2, "modprobe: failed to load module s"..., 67modprobe: failed to load module soundcore: Operation not permitted
) = 67
exit(0)                                 = ?
==============================================

modules.dep was generated by examples/depmod.pl from busybox distribution. 

Target platform is MIPS32
Target kernel is 2.4.37.4
Target uClibc is 0.9.29
Comment 1 Leonid 2009-08-12 17:54:16 UTC
Created attachment 599 [details]
This patch solves problem for me
Comment 2 Denys Vlasenko 2009-08-14 00:12:53 UTC
Applied to current git, thanks!