Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/c063 PR misc/54940: do not combine O_SEARCH w...



details:   https://anonhg.NetBSD.org/src/rev/dfb3577f4c2b
branches:  trunk
changeset: 744544:dfb3577f4c2b
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Feb 05 17:13:24 2020 +0000

description:
PR misc/54940: do not combine O_SEARCH with O_RDWR, from Kyle Evans.

diffstat:

 tests/lib/libc/c063/t_o_search.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e1758059f66a -r dfb3577f4c2b tests/lib/libc/c063/t_o_search.c
--- a/tests/lib/libc/c063/t_o_search.c  Wed Feb 05 14:56:25 2020 +0000
+++ b/tests/lib/libc/c063/t_o_search.c  Wed Feb 05 17:13:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_o_search.c,v 1.7 2020/02/05 08:52:46 martin Exp $ */
+/*     $NetBSD: t_o_search.c,v 1.8 2020/02/05 17:13:24 martin Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_o_search.c,v 1.7 2020/02/05 08:52:46 martin Exp $");
+__RCSID("$NetBSD: t_o_search.c,v 1.8 2020/02/05 17:13:24 martin Exp $");
 
 #include <atf-c.h>
 
@@ -257,7 +257,7 @@
        int fd;
 
        ATF_REQUIRE(mkdir(DIR, 0755) == 0);
-       ATF_REQUIRE((dfd = open(FILE, O_CREAT|O_RDWR|O_SEARCH, 0644)) != -1);
+       ATF_REQUIRE((dfd = open(FILE, O_CREAT|O_SEARCH, 0644)) != -1);
        ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) == -1);
        ATF_REQUIRE(errno == ENOTDIR);
        ATF_REQUIRE(close(dfd) == 0);



Home | Main Index | Thread Index | Old Index