summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-10-31 07:58:00 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-10-31 07:58:00 +0000
commitaa4d8d8efaf24a17ae79a4dcd5db09fc6bc6ff15 (patch)
tree40cc9baa0589dcb1e150304f2134b58cbbb24122 /regress
parent9fbeb194a9f0ba129d0deb05ec25c130af235f72 (diff)
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 'regress')
-rw-r--r--regress/lib/libc/sys/t_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libc/sys/t_stat.c b/regress/lib/libc/sys/t_stat.c
index eca93f83bd8..ae88e1559a7 100644
--- a/regress/lib/libc/sys/t_stat.c
+++ b/regress/lib/libc/sys/t_stat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t_stat.c,v 1.4 2021/12/13 16:56:48 deraadt Exp $ */
+/* $OpenBSD: t_stat.c,v 1.5 2023/10/31 07:57:59 claudio Exp $ */
/* $NetBSD: t_stat.c,v 1.6 2019/07/16 17:29:18 martin Exp $ */
/*-
@@ -261,7 +261,7 @@ ATF_TC_BODY(stat_perm, tc)
ATF_REQUIRE(fstat(fd, &sa) == 0);
ATF_REQUIRE(stat(path, &sb) == 0);
- if (gid != sa.st_gid || sa.st_gid != sb.st_gid)
+ if (sa.st_gid != sb.st_gid)
atf_tc_fail("invalid GID");
if (uid != sa.st_uid || sa.st_uid != sb.st_uid)