chiark / gitweb /
main: don't warn if /etc/mtab is a symlink to /proc/mounts
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Jan 2011 01:57:58 +0000 (02:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Jan 2011 01:57:58 +0000 (02:57 +0100)
src/main.c

index 99e277c..0f82b70 100644 (file)
@@ -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)