From: Mike Yuan Date: Mon, 19 Jan 2026 00:15:18 +0000 (+0100) Subject: stat-util: O_NOCTTY is nop with O_PATH X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f90e4e4bc23982c9f06f85fc278245560b7a622;p=thirdparty%2Fsystemd.git stat-util: O_NOCTTY is nop with O_PATH --- diff --git a/src/basic/stat-util.c b/src/basic/stat-util.c index 5113d0459ba..628d99ac5a6 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;