]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: pass encountered error number to log_syntax()
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 14:18:35 +0000 (16:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 14:23:45 +0000 (16:23 +0200)
src/shared/install.c

index 61b713c6b604514ea8ba5ee2747ba82c7e2554c1..d806bc69ff7ec6d4862ce90f8b9c399f3a56a1e6 100644 (file)
@@ -2880,7 +2880,7 @@ static int read_presets(UnitFileScope scope, const char *root_dir, Presets *pres
                                 /* Unit_name will remain the same as parameter when no instances are specified */
                                 r = split_pattern_into_name_and_instances(parameter, &unit_name, &instances);
                                 if (r < 0) {
-                                        log_syntax(NULL, LOG_WARNING, *p, n, 0, "Couldn't parse line '%s'. Ignoring.", line);
+                                        log_syntax(NULL, LOG_WARNING, *p, n, r, "Couldn't parse line '%s'. Ignoring.", line);
                                         continue;
                                 }