diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-05 20:18:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-07 15:29:17 +0200 |
commit | b8b846d7b4c20bd1ac8c72e49e9d134ce8bd5213 (patch) | |
tree | 0da42b03f22ad9adab192600c6661fa3c35ea0ce /src/basic/conf-files.c | |
parent | core: enumerate perpetual units in a separate per-unit-type method (diff) | |
download | systemd-b8b846d7b4c20bd1ac8c72e49e9d134ce8bd5213.tar.xz systemd-b8b846d7b4c20bd1ac8c72e49e9d134ce8bd5213.zip |
tree-wide: fix a number of log calls that use %m but have no errno set
This is mostly fall-out from d1a1f0aaf0d2f08c60d1e0d32e646439d99f58dc,
however some cases are older bugs.
There might be more issues lurking, this was a simple grep for "%m"
across the tree, with all lines removed that mention "errno" at all.
Diffstat (limited to 'src/basic/conf-files.c')
-rw-r--r-- | src/basic/conf-files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/conf-files.c b/src/basic/conf-files.c index 2e65a6e74f..15a066da7f 100644 --- a/src/basic/conf-files.c +++ b/src/basic/conf-files.c @@ -349,7 +349,7 @@ int conf_files_cat(const char *root, const char *name) { assert(endswith(dir, "/")); r = strv_extendf(&dirs, "%s%s.d", dir, name); if (r < 0) - return log_error("Failed to build directory list: %m"); + return log_error_errno(r, "Failed to build directory list: %m"); } r = conf_files_list_strv(&files, ".conf", root, 0, (const char* const*) dirs); |