public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* output file cannot be in the UBIFS root directory check is not working quite well
@ 2012-10-03 19:30 kyak
  2012-10-05 15:57 ` kyak
  0 siblings, 1 reply; 8+ messages in thread
From: kyak @ 2012-10-03 19:30 UTC (permalink / raw)
  To: linux-mtd

Hi,

Consider the following sequence of commands:

cd ~
mkdir -p /tmp/wtf/wtf1
chmod u-r /tmp/wtf
mkfs.ubifs -m 4096 -e 516096 -c 4095 -d /tmp/wtf/wtf1 -o mytest.img
Error: output file cannot be in the UBIFS root directory

mytest.img is not inside /tmp/wtf/wtf1, but mkfs.ubifs fails because 
/tmp/wtf is not readable.
It seems that implementation of in_path(..) in mkfs.ubifs.c is not quite 
correct to handle this type of situations.

If you are wondering, my /home is not readable, and this prevents me from 
building any ubifs image inside of /home/user.

Thanks in advance.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-10-11  6:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03 19:30 output file cannot be in the UBIFS root directory check is not working quite well kyak
2012-10-05 15:57 ` kyak
2012-10-08 13:57   ` Ricard Wanderlof
2012-10-08 14:40     ` kyak
2012-10-08 14:53       ` Ricard Wanderlof
2012-10-08 15:13         ` kyak
2012-10-10 14:55           ` kyak
2012-10-11  6:01             ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox