]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
exec-util: add missing logging call 10169/head
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Sep 2018 10:03:06 +0000 (12:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 25 Sep 2018 10:04:14 +0000 (12:04 +0200)
This function logs about all errors, but one case was forgotten. Fix
that.

src/basic/exec-util.c

index 169bef11fa94809fe7999a9b0c8b7fce83f506bd..aa26902a20cb50d7ce6d5edb2586df2b50835c7a 100644 (file)
@@ -87,7 +87,7 @@ static int do_execute(
 
         r = conf_files_list_strv(&paths, NULL, NULL, CONF_FILES_EXECUTABLE|CONF_FILES_REGULAR|CONF_FILES_FILTER_MASKED, (const char* const*) directories);
         if (r < 0)
-                return r;
+                return log_error_errno(r, "Failed to enumerate executables: %m");
 
         if (!callbacks) {
                 pids = hashmap_new(NULL);