The cifs share is hosted on Win2000 computer and mounted on a Gentoo Linux computer with options "users,exec". The version of Samba is 3.6.8. Steps to trigger the error: (1) Create a directory into a samba share $ cd /mnt/samba_share $ mkdir tmp1 (2) Then create a sub-directory $ cd tmp1 $ mkdir tmp2 $ cd tmp2 (3) Running command like make will not generate the error. $ make make: *** No targets specified and no makefile found. Stop. (4) Now create a file in the parent directory and delete it. $ touch ../any.txt $ rm ../any.txt (5) Running make again will give "getcwd: No such file or directory" error. $ make make: getcwd: No such file or directory make: *** No targets specified and no makefile found. Stop. (6) Changing directory to the parent directory and back again will stop the error. $ cd ../tmp2 $ make make: *** No targets specified and no makefile found. Stop. (7) It is not only Other commands like gentoo equery command generates the same error $ equery b /usr/bin/find shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory * Searching for /usr/bin/find ...
Update: I saw the same error with ext3 while building Asterisk package. So it is not limited to cifs.
We've only experienced that with CIFS.
I can not reproduce this on my Gentoo Linux 3.5.7 on a Samba 4.0.0 share mounted with cifs-utils-5.5-r1. yzg: the samba version does not matter. The cifs stuff depends on the Kernel and cifs-utils. Do you still have this problem?
Is it possible that you removed your own subdirectory instead of just one file in the parent directory? vlendec@delphin:~$ mkdir /tmp/bla vlendec@delphin:~$ mkdir /tmp/bla/blub vlendec@delphin:~$ cd /tmp/bla/blub vlendec@delphin:/tmp/bla/blub$ rm -r /tmp/bla vlendec@delphin:/tmp/bla/blub$ ls vlendec@delphin:/tmp/bla/blub$ cd .. cd: Kann das nicht aktuelle Verzeichnis wiederfinden: getwd: Kann nicht auf das übergeordnete Verzeichnis zugreifen.: Datei oder Verzeichnis nicht gefunden vlendec@delphin:/tmp/bla/blub/..$
Hi Björn Yes, I still have this problem. I'm at version net-fs/cifs-utils-5.6-r1 and kernel 3.6.11-gentoo. Sometimes, it does not reproduce. But if you delete all the directories and repeat the procedure, it happens. The problem is interfering with any build process if the project files are stored on samba. Hi Volker I'm very careful about deleting the current directory.
works for me. also comment#1 said this also happens with ext3, so there seems to be a different problem.
actually looks very much like bug #9484 *** This bug has been marked as a duplicate of bug 9484 ***