Eddie Horng: > I noticed that ls(1) and "stat ." work but getcwd(2) still fail after those > commands, I got so confused when I just beginning to understand this issue.
Yes, that is why I wrote that I could not reproduce in the beginning. All commands I have tried worked. I might be confused too. I've confirmed that both of getcwd(2) and (3) failed. But it didn't bother the commands running. > Your discovery on libc version difference might be offer another solution > on this issue in user mode -- to find a workable getcwd(3) or to wrap > getcwd(3) in libc. Thanks your great hint! I've only checked the source code of glibc. As you might know, it supports various systems and I don't know which system issues stat(2) internally. But if you can add a wrapper to your system, it must be the simplest solution for generic NFS. J. R. Okajima ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot