Pawel Jakub Dawidek wrote:
> On Wed, Nov 13, 2002 at 03:28:22PM -0800, Terry Lambert wrote:
> +> Don't worry about it.  It's only a problem for mmap'ed files
> +> which are also read/written.  Sheesh.
> 
> I have found one little bug in nullfs. I've send it some time ago
> to hackers@, but without any respond.

__getcwd(2) doesn't work like you think it works.

It works by looking up things in the directory name cache.

It's perfectly acceptable for it to fail.

This is why you are supposed t use getcwd(3), instead, which
can recover if the system call fails.

Realize that directories do not have necessarily valid parent
pointers hanging around.

By overloading the lookup cache, I can cause your program to
fail on NFS, as well,  You just aren't waving the right dead
chicken in your test case.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to