Merge pull request #1214 from zonque/mtab

core: freeze execution if /etc/mtab exists
This commit is contained in:
Lennart Poettering
2015-09-09 14:43:42 +02:00
+4 -3
View File
@@ -1118,9 +1118,10 @@ static void test_mtab(void) {
if (r >= 0 && nulstr_contains(ok, p))
return;
log_warning("/etc/mtab is not a symlink or not pointing to /proc/self/mounts. "
"This is not supported anymore. "
"Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8) output.");
log_error("/etc/mtab is not a symlink or not pointing to /proc/self/mounts. "
"This is not supported anymore. "
"Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8) output.");
freeze();
}
static void test_usr(void) {