Re: [PATCH] /proc filesystem bug in 2.1.125

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
23 Oct 1998 11:37:47 +0200


Mike Galbraith <mikeg@weiden.de> writes:

|> On Thu, 22 Oct 1998, Rik van Riel wrote:
|>
|> > On Thu, 22 Oct 1998, Mike Galbraith wrote:
|> > > On Thu, 22 Oct 1998, Vladimir V. Ivanov wrote:
|> > >
|> > > > Try the following in shell prompt just for checking:
|> > > > elis# cd /proc/1
|> > > > elis# /bin/pwd
|> > > > /bin/pwd: cannot get current directory
|> > > > elis#
|> > >
|> > > Is the version you're using doing something other than getcwd()?
|> > >
|> > > [root]:# cd /proc/1
|> > > [root]:# /bin/pwd
|> > > /proc/1
|> > > [root]:# /bin/pwd --version
|> > > pwd (GNU sh-utils) 1.16
|> >
|> > I have tested the same thing with pwd from GNU sh-utils
|> > 1.16, but it doesn't work on my system.
|> >
|> > Maybe it's a glibc/libc5 thing. I'm using glibc and
|> > I have a hunch Vladimir is too..
|>
|> I'm using glibc-2.0.98, and (double-check) the binary is glibc linked.

Note that glibc-2.0.98 uses the new getcwd syscall which works even if
some parent directory is inaccessible.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org

- 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/