From: Yu Watanabe Date: Sat, 24 Sep 2022 01:10:51 +0000 (+0900) Subject: tmpfiles: fix wrong return value X-Git-Tag: v252-rc1~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e56074a2121d2db7964321156fe522232b16034d;p=thirdparty%2Fsystemd.git tmpfiles: fix wrong return value Follow-up for 27f6aa0b7112024c1236957abd909071b06869a8. --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 0031b6ee49d..705721ffbd3 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1802,7 +1802,7 @@ static int empty_directory(Item *i, const char *path, CreationMode creation) { r = chase_symlinks(path, arg_root, CHASE_SAFE|CHASE_WARN, NULL, &fd); if (r == -ENOLINK) /* Unsafe symlink: already covered by CHASE_WARN */ - return fd; + return r; if (r == -ENOENT) { /* Option "e" operates only on existing objects. Do not print errors about non-existent files * or directories */