summaryrefslogtreecommitdiffstats
path: root/src/shared/journal-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/journal-util.c')
-rw-r--r--src/shared/journal-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/journal-util.c b/src/shared/journal-util.c
index 11d5d68478..85b369c36d 100644
--- a/src/shared/journal-util.c
+++ b/src/shared/journal-util.c
@@ -34,7 +34,7 @@ static int access_check_var_log_journal(sd_journal *j, bool want_other_users) {
_cleanup_strv_free_ char **g = NULL;
const char* dir;
- if (laccess("/run/log/journal", F_OK) >= 0)
+ if (access_nofollow("/run/log/journal", F_OK) >= 0)
dir = "/run/log/journal";
else
dir = "/var/log/journal";