diff options
Diffstat (limited to 'src/regress/lib/libc/sys/t_stat.c')
-rw-r--r-- | src/regress/lib/libc/sys/t_stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libc/sys/t_stat.c b/src/regress/lib/libc/sys/t_stat.c index 73350c0e6a..5aadf39b99 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.2 2019/11/22 15:59:53 bluhm Exp $ */ | 1 | /* $OpenBSD: t_stat.c,v 1.3 2020/11/09 23:18:51 bluhm 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 | /*- |
@@ -68,7 +68,7 @@ ATF_TC_BODY(stat_chflags, tc) | |||
68 | (void)memset(&sa, 0, sizeof(struct stat)); | 68 | (void)memset(&sa, 0, sizeof(struct stat)); |
69 | (void)memset(&sb, 0, sizeof(struct stat)); | 69 | (void)memset(&sb, 0, sizeof(struct stat)); |
70 | 70 | ||
71 | fd = open(path, O_RDONLY | O_CREAT); | 71 | fd = open(path, O_RDONLY | O_CREAT, 0600); |
72 | 72 | ||
73 | ATF_REQUIRE(fd != -1); | 73 | ATF_REQUIRE(fd != -1); |
74 | ATF_REQUIRE(stat(path, &sa) == 0); | 74 | ATF_REQUIRE(stat(path, &sa) == 0); |
@@ -258,7 +258,7 @@ ATF_TC_BODY(stat_perm, tc) | |||
258 | uid = getuid(); | 258 | uid = getuid(); |
259 | gid = getgid(); | 259 | gid = getgid(); |
260 | 260 | ||
261 | fd = open(path, O_RDONLY | O_CREAT); | 261 | fd = open(path, O_RDONLY | O_CREAT, 0600); |
262 | 262 | ||
263 | ATF_REQUIRE(fd != -1); | 263 | ATF_REQUIRE(fd != -1); |
264 | ATF_REQUIRE(fstat(fd, &sa) == 0); | 264 | ATF_REQUIRE(fstat(fd, &sa) == 0); |