mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-25 06:03:40 +03:00
tmpfiles: fix wrong return value
Follow-up for 27f6aa0b7112024c1236957abd909071b06869a8.
This commit is contained in:
parent
599b384924
commit
e56074a212
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user