summaryrefslogtreecommitdiffstats
path: root/src/basic/fs-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/fs-util.c')
-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;