Resolving symlinked dirs when execing command

Denys Vlasenko vda.linux at googlemail.com
Fri Sep 28 23:05:56 UTC 2007


Hi Pavel,

[I hope to find time and test release candidate this weekend]

One thing which may be simple to fix:

On my machine I have:

$ ls -l /software
lrwxrwxrwx    1 root     root           14 Jun 26 12:23 /software -> /auto/software

If I cd into /software while I am in mc, and then
I run any command, it is run in *resolved dir*:

$ pwd
/auto/software

It differs from what happens under e.g. shell:

sh-3.1$ cd /software
sh-3.1$ pwd
/software

Why mc resolves dir and cd'es into it before it forks a child?
--
vda



More information about the mc-devel mailing list