summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/t_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libc/sys/t_write.c')
-rw-r--r--src/regress/lib/libc/sys/t_write.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libc/sys/t_write.c b/src/regress/lib/libc/sys/t_write.c
index d22f32383a..f05edb5bed 100644
--- a/src/regress/lib/libc/sys/t_write.c
+++ b/src/regress/lib/libc/sys/t_write.c
@@ -1,5 +1,5 @@
1/* $OpenBSD: t_write.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ 1/* $OpenBSD: t_write.c,v 1.2 2019/11/22 15:59:53 bluhm Exp $ */
2/* $NetBSD: t_write.c,v 1.6 2017/07/09 22:18:43 christos Exp $ */ 2/* $NetBSD: t_write.c,v 1.7 2019/07/16 17:29:18 martin Exp $ */
3 3
4/*- 4/*-
5 * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc. 5 * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
32#include <sys/cdefs.h> 32#include <sys/cdefs.h>
33__COPYRIGHT("@(#) Copyright (c) 2008\ 33__COPYRIGHT("@(#) Copyright (c) 2008\
34 The NetBSD Foundation, inc. All rights reserved."); 34 The NetBSD Foundation, inc. All rights reserved.");
35__RCSID("$NetBSD: t_write.c,v 1.6 2017/07/09 22:18:43 christos Exp $"); 35__RCSID("$NetBSD: t_write.c,v 1.7 2019/07/16 17:29:18 martin Exp $");
36 36
37#include <sys/uio.h> 37#include <sys/uio.h>
38#include <sys/mman.h> 38#include <sys/mman.h>
@@ -176,7 +176,7 @@ ATF_TC_BODY(write_ret, tc)
176 size_t i, j; 176 size_t i, j;
177 int fd; 177 int fd;
178 178
179 fd = open(path, O_WRONLY | O_CREAT); 179 fd = open(path, O_WRONLY | O_CREAT, 0600);
180 ATF_REQUIRE(fd >= 0); 180 ATF_REQUIRE(fd >= 0);
181 181
182 (void)memset(buf, 'x', sizeof(buf)); 182 (void)memset(buf, 'x', sizeof(buf));