diff --git a/src/basic/chase-symlinks.c b/src/basic/chase-symlinks.c index 0bb07000ba..7a2aa9f94c 100644 --- a/src/basic/chase-symlinks.c +++ b/src/basic/chase-symlinks.c @@ -557,7 +557,7 @@ int chase_symlinks_and_opendir( return r; assert(path_fd >= 0); - d = opendir(FORMAT_PROC_FD_PATH(path_fd)); + d = xopendirat(path_fd, ".", O_NOFOLLOW); if (!d) return -errno;