From ed86ebc41440b09977b93cf71f4a55082d9a2e44 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 21 Jan 2011 02:57:58 +0100 Subject: [PATCH] main: don't warn if /etc/mtab is a symlink to /proc/mounts --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 99e277c6..0f82b706 100644 --- a/src/main.c +++ b/src/main.c @@ -899,7 +899,7 @@ static void test_mtab(void) { if (readlink_malloc("/etc/mtab", &p) >= 0) { bool b; - b = streq(p, "/proc/self/mounts"); + b = streq(p, "/proc/self/mounts") || streq(p, "/proc/mounts"); free(p); if (b) -- 2.39.5