Author: brooks Date: Thu Jul 18 21:37:50 2019 New Revision: 350117 URL: https://svnweb.freebsd.org/changeset/base/350117
Log: Include a mode when creating files with openat(). Reviewed by: asomers Obtained from: CheriBSD MFC after: 1 week Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D20989 Modified: head/lib/libc/tests/gen/dir2_test.c Modified: head/lib/libc/tests/gen/dir2_test.c ============================================================================== --- head/lib/libc/tests/gen/dir2_test.c Thu Jul 18 21:33:55 2019 (r350116) +++ head/lib/libc/tests/gen/dir2_test.c Thu Jul 18 21:37:50 2019 (r350117) @@ -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); } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"