summaryrefslogtreecommitdiff
path: root/src/tmpfiles/tmpfiles.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-26 21:07:38 +0200
committerLennart Poettering <lennart@poettering.net>2018-11-08 09:52:16 +0100
commit21af33863fcfc9f3699d12ce4c65ee52807fefe8 (patch)
treec60965d95658f0fe3e86a7bb06e9fc5b74bbd80e /src/tmpfiles/tmpfiles.c
parent811a15877825da9e53f9a2a8603da34589af6bbb (diff)
downloadsystemd-21af33863fcfc9f3699d12ce4c65ee52807fefe8.tar.gz
tmpfiles: log when we skip an entry due to autofs
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
-rw-r--r--src/tmpfiles/tmpfiles.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 2b38068d58..af8c12e06e 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -2258,8 +2258,12 @@ static int process_item(Item *i, OperationMask operation) {
i->done |= operation;
- if (chase_symlinks(i->path, NULL, CHASE_NO_AUTOFS, NULL) == -EREMOTE)
+ r = chase_symlinks(i->path, NULL, CHASE_NO_AUTOFS, NULL);
+ if (r == -EREMOTE) {
+ log_debug_errno(r, "Item '%s' is behind autofs, skipping.", i->path);
return 0;
+ } else if (r < 0)
+ log_debug_errno(r, "Failed to determine whether '%s' is behind autofs, ignoring: %m", i->path);
r = FLAGS_SET(operation, OPERATION_CREATE) ? create_item(i) : 0;
/* Failure can only be tolerated for create */