From 5f90e4e4bc23982c9f06f85fc278245560b7a622 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Mon, 19 Jan 2026 01:15:18 +0100 Subject: [PATCH] stat-util: O_NOCTTY is nop with O_PATH --- src/basic/stat-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/stat-util.c b/src/basic/stat-util.c index 5113d0459b..628d99ac5a 100644 --- a/src/basic/stat-util.c +++ b/src/basic/stat-util.c @@ -264,7 +264,7 @@ int xstatfsat(int dir_fd, const char *path, struct statfs *ret) { assert(ret); if (!isempty(path)) { - fd = xopenat(dir_fd, path, O_PATH|O_CLOEXEC|O_NOCTTY); + fd = xopenat(dir_fd, path, O_PATH|O_CLOEXEC); if (fd < 0) return fd; dir_fd = fd;