diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-09 14:43:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-09 14:43:42 +0200 |
commit | 0f9415d44c9951f3479a05cb07e41d3c70bf95f2 (patch) | |
tree | 730def80a75ed71633c3fc61cb9c6f1b1271f8a9 /src/core | |
parent | 542a69a284805aaf5b92b0e5da39339967d516e3 (diff) | |
parent | bcce71873bbc908fbd11f2053edffe9151940eaa (diff) |
Merge pull request #1214 from zonque/mtab
core: freeze execution if /etc/mtab exists
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/main.c b/src/core/main.c index 9aaf244e71..be7d41907a 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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) { |