summaryrefslogtreecommitdiffstats
path: root/src/volatile-root/volatile-root.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-09 16:06:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-10 14:46:59 +0100
commit7211c853c26554ad1f58c2cfa1d5a0bfc059bf15 (patch)
tree8ec5ffd55875cf64df5df97d7cf10c6449d23fea /src/volatile-root/volatile-root.c
parentReturn -EINVAL from _from_string() functions (diff)
downloadsystemd-7211c853c26554ad1f58c2cfa1d5a0bfc059bf15.tar.xz
systemd-7211c853c26554ad1f58c2cfa1d5a0bfc059bf15.zip
tree-wide: propagate error code from _from_string() functions
Now that we know we have something useful, no need to make an answer up.
Diffstat (limited to 'src/volatile-root/volatile-root.c')
-rw-r--r--src/volatile-root/volatile-root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volatile-root/volatile-root.c b/src/volatile-root/volatile-root.c
index 242ef81ecf..1a6593f9c4 100644
--- a/src/volatile-root/volatile-root.c
+++ b/src/volatile-root/volatile-root.c
@@ -132,7 +132,7 @@ static int run(int argc, char *argv[]) {
/* The kernel command line always wins. However if nothing was set there, the argument passed here wins instead. */
m = volatile_mode_from_string(argv[1]);
if (m < 0)
- return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Couldn't parse volatile mode: %s", argv[1]);
+ return log_error_errno(m, "Couldn't parse volatile mode: %s", argv[1]);
}
if (argc < 3)