Hi, See attached patch for semantics fix. -- Sami Kerola http://www.iki.fi/kerolasa/
From f3611c885256e7e6c37a415e4db7f2e621151004 Mon Sep 17 00:00:00 2001 From: Sami Kerola <kerolasa@xxxxxx> Date: Mon, 27 Jul 2009 14:04:33 +0200 Subject: [PATCH] Root is always a mount point. Cc: kerolasa@xxxxxx --- misc-utils/namei.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/misc-utils/namei.c b/misc-utils/namei.c index b8930cd..5435c50 100644 --- a/misc-utils/namei.c +++ b/misc-utils/namei.c @@ -365,6 +365,9 @@ print_namei(struct namei *nm, char *path) strmode(nm->st.st_mode, md); + if ((flags & NAMEI_MNTS) && !prev) + md[0] = 'D'; /* root is always mount point */ + if ((flags & NAMEI_MNTS) && prev && S_ISDIR(nm->st.st_mode) && S_ISDIR(prev->st.st_mode) && prev->st.st_dev != nm->st.st_dev) -- 1.6.2.5