On Mon, Jul 27, 2009 at 14:13, Sami Kerola<kerolasa@xxxxxx> wrote: > See attached patch for semantics fix. Patch I sent yesterday was rubbish. It misbehaves. sake@lelux ~ namei -x . f: . D . Where current directory is not mount point. The only way I could think of making mount point detection work correctly is to stat current inode and and .. in same directory, compare device numbers and if they differ it's a mount point. In case device number is the same and inode then it must be root. A better patch will follow later, or much later. -- Sami Kerola http://www.iki.fi/kerolasa/ -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html