]> err.no Git - systemd/commitdiff
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 99e277c67b9fd290bd4095425344c852e62e529e..0f82b706c6bd734521de11a7f4e8cdd11ea3d82b 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)