X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftmpfiles.c;h=1234cbf3480c9c1bc190dfdfe3c3a768cba0e66f;hb=ec14911e0d6b9473f4f1d6b43d7fcd67c48c2ffc;hp=120236c5cc07490f03724b694e77e831f9987f92;hpb=9c73736da85110ca73d141b5acff6f4989092c07;p=elogind.git diff --git a/src/tmpfiles.c b/src/tmpfiles.c index 120236c5c..1234cbf34 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -149,7 +149,7 @@ static int dir_cleanup( DIR *sub_dir; int q; - sub_dir = xopendirat(dirfd(d), dent->d_name); + sub_dir = xopendirat(dirfd(d), dent->d_name, O_NOFOLLOW); if (sub_dir == NULL) { if (errno != ENOENT) { log_error("opendir(%s/%s) failed: %m", p, dent->d_name);