Date: Thu, 25 Jul 2019 20:01:24 +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-12@freebsd.org Subject: svn commit: r350332 - stable/12/lib/libc/tests/gen Message-ID: <201907252001.x6PK1ODW076055@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brooks Date: Thu Jul 25 20:01:24 2019 New Revision: 350332 URL: https://svnweb.freebsd.org/changeset/base/350332 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/12/lib/libc/tests/gen/dir2_test.c Directory Properties: stable/12/ (props changed) Modified: stable/12/lib/libc/tests/gen/dir2_test.c ============================================================================== --- stable/12/lib/libc/tests/gen/dir2_test.c Thu Jul 25 18:48:31 2019 (r350331) +++ stable/12/lib/libc/tests/gen/dir2_test.c Thu Jul 25 20:01:24 2019 (r350332) @@ -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?201907252001.x6PK1ODW076055>