stat-util: O_NOCTTY is nop with O_PATH

This commit is contained in:
Mike Yuan
2026-01-19 13:33:27 +01:00
parent b0906b1216
commit 5f90e4e4bc
+1 -1
View File
@@ -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;