Ответ: CONFIG (makedevs)

Denys Vlasenko vda.linux at googlemail.com
Fri Aug 1 02:19:31 UTC 2008


On Thursday 31 July 2008 17:51, Vladimir Dronnikov wrote:
> Tested on both files you pointed. Works nice except the following issue:
> 
> I tried
> # makedevs -d list.txt DEVS
> 
> It created the desired stuff under ./DEVS/DEVS. This is hardly
> desirable behavior, right? This is because we first xchdir(roodir) and
> then create nodes under rootdir within rootdir (concat_path...). So I
> changed the code to xchdir() only once. Then all entries in device
> table must be stripped leading / so that path becomes correct.
> 
> If this is the right way makedevs should work I will send a patch and
> will ask to consider applying it as usual.

This indeed looks like yet another bug in makedevs.

I applied your previous patch, thanks.

If you want to fix the above, adapt testsuite to test for it
(should be trivial, I used "." as a directory name exactly to
avoid hitting the bug. Use "makdevs.testdir" instead).
--
vda



More information about the busybox mailing list