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

This commit is contained in:
Lennart Poettering 2011-01-21 02:57:58 +01:00
parent cae18e2172
commit ed86ebc414

View 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)