From: Lennart Poettering Date: Fri, 21 Jan 2011 01:57:58 +0000 (+0100) Subject: main: don't warn if /etc/mtab is a symlink to /proc/mounts X-Git-Tag: v17~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=ed86ebc41440b09977b93cf71f4a55082d9a2e44 main: don't warn if /etc/mtab is a symlink to /proc/mounts --- diff --git a/src/main.c b/src/main.c index 99e277c67..0f82b706c 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)