Is this expected behavior ? I've tried this on 2.2.13, under minix and msdos
filesystems.

cd /dos/djgpp-v2XXXXXXXXXXXXXXXXX succeedes on msdos (8+3) partition. 'pwd'
claims that is current directory. However, /proc/$PID/cwd claims directory
is /dos/djgpp-v2 which is correct.


So far it would seem like shell problem. But, strace(8)-ing the shell
reveals:

chdir("/dos/djgpp-v2xxxxxxx")           = 0
stat("/dos/djgpp-v2xxxxxxx", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0

Hmmm, so it would seem that chdir(2) and stat(2) silently reject parts of
given filename. That could be either VFS, or specific dentry handler for
msdos and minix.

So, the question is, is this to be expected? Or should it be fixed?

It seems to create some confusion (think using /dos/somefile.txt and trying
to create lock file /dos/somefile.txt.lck, or editing /dos/somefile.txt and
trying to save backup /dos/somefile.txt~ or simular. How would it handle
it?)

-- 
Opinions above are GNU-copylefted.

Reply via email to