summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-21 02:57:58 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-21 02:57:58 +0100
commited86ebc41440b09977b93cf71f4a55082d9a2e44 (patch)
treed43ce8a1b013e3a439b0f056bde4f8491dbc9a23 /src
parentcae18e217208735797232eabb83a93470aefe88f (diff)
main: don't warn if /etc/mtab is a symlink to /proc/mounts
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 99e277c67b..0f82b706c6 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)