Re: [patch 3/3] vfs: fix sys_getcwd for detached mounts

From: Miklos Szeredi
Date: Mon Jun 23 2008 - 12:58:25 EST


> Darn, this is wrong. It should be looking at vfsmnt->mnt_namespace ==
> NULL.
>
> Fixed patch coming up.

And the thing is: getcwd() did return garbage for detached mounts,
except if the mounted dentry was the root of the filesystem. Which
makes the "detached:..." change slightly prone to breaking something.
Still not very likely, but...

Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/