summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-23 16:21:38 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-23 16:21:38 +0200
commit8d9803b83c1f72e1bf158af4615b1c53a4749118 (patch)
tree68748749bdb1c800d0f4a7f05ed665299a5c3b31
parent5259bcf6a638d8d489db1ddefd55327aa15f3e51 (diff)
core: fix parsing of mount flags
As reported my Maciej Wereski: http://lists.freedesktop.org/archives/systemd-devel/2015-February/028320.html
-rw-r--r--src/core/load-fragment.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index eada71e227..b76656b931 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -1202,17 +1202,15 @@ int config_parse_exec_mount_flags(const char *unit,
flags = MS_SHARED;
else if (streq(t, "slave"))
flags = MS_SLAVE;
- else if (streq(word, "private"))
+ else if (streq(t, "private"))
flags = MS_PRIVATE;
else {
- log_syntax(unit, LOG_ERR, filename, line, EINVAL,
- "Failed to parse mount flag %s, ignoring: %s", t, rvalue);
+ log_syntax(unit, LOG_ERR, filename, line, EINVAL, "Failed to parse mount flag %s, ignoring: %s", t, rvalue);
return 0;
}
}
if (!isempty(state))
- log_syntax(unit, LOG_ERR, filename, line, EINVAL,
- "Trailing garbage, ignoring.");
+ log_syntax(unit, LOG_ERR, filename, line, EINVAL, "Trailing garbage, ignoring.");
c->mount_flags = flags;
return 0;