summaryrefslogtreecommitdiffstats
path: root/src/tmpfiles/tmpfiles.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-24 03:10:51 +0200
committerJan Janssen <medhefgo@web.de>2022-09-24 13:44:42 +0200
commite56074a2121d2db7964321156fe522232b16034d (patch)
tree42b927493ba5fa492b380277975a10abbe93ce02 /src/tmpfiles/tmpfiles.c
parentcore: respect SELinuxContext= for socket creation (diff)
downloadsystemd-e56074a2121d2db7964321156fe522232b16034d.tar.xz
systemd-e56074a2121d2db7964321156fe522232b16034d.zip
tmpfiles: fix wrong return value
Follow-up for 27f6aa0b7112024c1236957abd909071b06869a8.
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 0031b6ee49..705721ffbd 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 */