Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2019 20:34:50 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r350334 - stable/11/lib/libc/tests/gen
Message-ID:  <201907252034.x6PKYoKE098531@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Thu Jul 25 20:34:50 2019
New Revision: 350334
URL: https://svnweb.freebsd.org/changeset/base/350334

Log:
  MFC r350117:
  
  Include a mode when creating files with openat().
  
  Reviewed by:	asomers
  Obtained from:	CheriBSD
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D20989

Modified:
  stable/11/lib/libc/tests/gen/dir2_test.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libc/tests/gen/dir2_test.c
==============================================================================
--- stable/11/lib/libc/tests/gen/dir2_test.c	Thu Jul 25 20:26:21 2019	(r350333)
+++ stable/11/lib/libc/tests/gen/dir2_test.c	Thu Jul 25 20:34:50 2019	(r350334)
@@ -73,7 +73,7 @@ ATF_TC_BODY(telldir_after_seekdir, tc)
 		char filename[16];
 
 		snprintf(filename, sizeof(filename), "%d", i);
-		fd = openat(dirfd, filename, O_WRONLY | O_CREAT);
+		fd = openat(dirfd, filename, O_WRONLY | O_CREAT, 0600);
 		ATF_REQUIRE(fd > 0);
 		close(fd);
 	}
@@ -150,7 +150,7 @@ ATF_TC_BODY(telldir_at_end_of_block, tc)
 		char filename[16];
 
 		snprintf(filename, sizeof(filename), "%d", i);
-		fd = openat(dirfd, filename, O_WRONLY | O_CREAT);
+		fd = openat(dirfd, filename, O_WRONLY | O_CREAT, 0600);
 		ATF_REQUIRE(fd > 0);
 		close(fd);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907252034.x6PKYoKE098531>