From: Lennart Poettering Date: Tue, 25 Sep 2018 10:03:06 +0000 (+0200) Subject: exec-util: add missing logging call X-Git-Tag: v240~685^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10169%2Fhead;p=thirdparty%2Fsystemd.git exec-util: add missing logging call This function logs about all errors, but one case was forgotten. Fix that. --- diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c index 169bef11fa9..aa26902a20c 100644 --- a/src/basic/exec-util.c +++ b/src/basic/exec-util.c @@ -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);