Try the following in shell prompt just for checking:
elis# cd /proc/1
elis# /bin/pwd
/bin/pwd: cannot get current directory
elis#
You can select any other "process directory" in /proc, but a problem will be the
same.
This bug exists in kernel 2.1.125 and probably in earlier versions also.
Patch is very simple :
--- CUT HERE ---
--- linux.orig/fs/proc/root.c Thu Oct 8 18:26:13 1998
+++ linux/fs/proc/root.c Thu Oct 22 10:11:22 1998
@@ -951,7 +951,7 @@
pid /= 10;
} while (pid);
- if (filldir(dirent, buf+j, PROC_NUMBUF-j, filp->f_pos, (pid << 16) + PROC_PID_INO) < 0)
+ if (filldir(dirent, buf+j, PROC_NUMBUF-j, filp->f_pos, (pid_array[i] << 16) + PROC_PID_INO) < 0)
break;
filp->f_pos++;
}
--- CUT HERE ---
Thanks,
and pardon me for my english.
-- Best regards, Vladimir Ivanov E-mail: mailto:vlad@elis.tusur.ru World Wide Web: http://elis.tusur.ru/~vlad- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/