summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys
diff options
context:
space:
mode:
authorclaudio <>2023-10-31 07:57:59 +0000
committerclaudio <>2023-10-31 07:57:59 +0000
commit58115f97acec371c97629d89b1aaea65877cbb49 (patch)
treed52ae96c7cf40979f43179a218ba8482074995e1 /src/regress/lib/libc/sys
parent9ae4e352fcb8edeb5f9befbfbfe501ef035a30d5 (diff)
downloadopenbsd-58115f97acec371c97629d89b1aaea65877cbb49.tar.gz
openbsd-58115f97acec371c97629d89b1aaea65877cbb49.tar.bz2
openbsd-58115f97acec371c97629d89b1aaea65877cbb49.zip
When creating a file in a directory the file gid is inherited from
the directory and so checking against getgid() makes no sense. OK mbuhl@ millert@
Diffstat (limited to 'src/regress/lib/libc/sys')
-rw-r--r--src/regress/lib/libc/sys/t_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libc/sys/t_stat.c b/src/regress/lib/libc/sys/t_stat.c
index eca93f83bd..ae88e1559a 100644
--- a/src/regress/lib/libc/sys/t_stat.c
+++ b/src/regress/lib/libc/sys/t_stat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_stat.c,v 1.4 2021/12/13 16:56:48 deraadt Exp $ */ 1/* $OpenBSD: t_stat.c,v 1.5 2023/10/31 07:57:59 claudio Exp $ */
2/* $NetBSD: t_stat.c,v 1.6 2019/07/16 17:29:18 martin Exp $ */ 2/* $NetBSD: t_stat.c,v 1.6 2019/07/16 17:29:18 martin Exp $ */
3 3
4/*- 4/*-
@@ -261,7 +261,7 @@ ATF_TC_BODY(stat_perm, tc)
261 ATF_REQUIRE(fstat(fd, &sa) == 0); 261 ATF_REQUIRE(fstat(fd, &sa) == 0);
262 ATF_REQUIRE(stat(path, &sb) == 0); 262 ATF_REQUIRE(stat(path, &sb) == 0);
263 263
264 if (gid != sa.st_gid || sa.st_gid != sb.st_gid) 264 if (sa.st_gid != sb.st_gid)
265 atf_tc_fail("invalid GID"); 265 atf_tc_fail("invalid GID");
266 266
267 if (uid != sa.st_uid || sa.st_uid != sb.st_uid) 267 if (uid != sa.st_uid || sa.st_uid != sb.st_uid)