coreutils-6.7 needs R: mounted /proc.

Jakub Bogusz qboosh at
Mon Dec 11 20:08:22 CET 2006

On Mon, Dec 11, 2006 at 07:35:11PM +0100, Paweł Sikora wrote:
> e.g. chmod and rm need mounted proc for working.
> $ mkdir foo
> $ cd foo
> $ touch bar
> $ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> /bin/chmod: cannot access `./bar': Function not implemented

> lstat("/proc/self/fd/4/bar", 0x60c4d8)  = -1 ENOENT (No such file or directory)

Actually it could work without /proc on recent kernels (2.6.17+) with
recent glibc (2.4+) after some work in coreutils (functions check +
changing AC_LIBOBJ to conditional):

coreutils use openat(), fchmodat() and so on; glibc 2.4+ implements
them, but coreutils don't expect them in libc ("No system provides these
functions; compile them unconditionally." in m4/openat.m4).
When run on older kernel glibc itself uses /proc/self/fd fallback.

Jakub Bogusz

More information about the pld-devel-en mailing list