Bug 567 - modprobe don't ignore tabulation symbols in modules.dep
Summary: modprobe don't ignore tabulation symbols in modules.dep
Status: VERIFIED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.14.x
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-12 17:53 UTC by Leonid
Modified: 2009-08-19 18:32 UTC (History)
1 user (show)

See Also:
Host:
Target: linux-mips
Build: 1.14.3


Attachments
Sample modules.dep (11.36 KB, application/octet-stream)
2009-08-12 17:53 UTC, Leonid
Details
This patch solves problem for me (511 bytes, patch)
2009-08-12 17:54 UTC, Leonid
Details

Note You need to log in before you can comment on or make changes to this bug.
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!