summaryrefslogtreecommitdiffstats
path: root/src/basic
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-05-20 13:17:22 +0200
committerMike Yuan <me@yhndnzj.com>2024-05-21 18:48:51 +0200
commit69baf0cb911e8300cf53dd5e4227fa43f95de740 (patch)
tree1287970618c14ff5b9aed08c51369a8626285aec /src/basic
parentfs-util: add missing assertions (diff)
downloadsystemd-69baf0cb911e8300cf53dd5e4227fa43f95de740.tar.xz
systemd-69baf0cb911e8300cf53dd5e4227fa43f95de740.zip
fs-util: use RET_GATHER at one more place
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/fs-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
index 5632736eed..6bb4587f81 100644
--- a/src/basic/fs-util.c
+++ b/src/basic/fs-util.c
@@ -633,11 +633,11 @@ static int tmp_dir_internal(const char *def, const char **ret) {
return 0;
}
- k = is_dir(def, true);
+ k = is_dir(def, /* follow = */ true);
if (k == 0)
k = -ENOTDIR;
if (k < 0)
- return r < 0 ? r : k;
+ return RET_GATHER(r, k);
*ret = def;
return 0;