[systemd-commits] src/main.c

Lennart Poettering lennart at kemper.freedesktop.org
Thu Jan 20 17:58:19 PST 2011


 src/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ed86ebc41440b09977b93cf71f4a55082d9a2e44
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Jan 21 02:57:58 2011 +0100

    main: don't warn if /etc/mtab is a symlink to /proc/mounts

diff --git a/src/main.c b/src/main.c
index 99e277c..0f82b70 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)



More information about the systemd-commits mailing list