summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/openat2/helpers.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-02-19 17:22:10 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2020-02-19 17:22:10 -0800
commitca7e1fd1026c5af6a533b4b5447e1d2f153e28f2 (patch)
tree92a3258bafc30d8b7ebaf1d546effb054e31c3d7 /tools/testing/selftests/openat2/helpers.c
parent4b205766d8fcb1627429ff31a4b36248b71a0df1 (diff)
parent9a0584f05687947d5a0b87f046bcd2592a55e67c (diff)
Merge tag 'linux-kselftest-5.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull Kselftest fixes from Shuah Khan: "Fixes to build failures and other test bugs" * tag 'linux-kselftest-5.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: openat2: fix build error on newer glibc selftests: use LDLIBS for libraries instead of LDFLAGS selftests: fix too long argument selftests: allow detection of build failures Kernel selftests: tpm2: check for tpm support selftests/ftrace: Have pid filter test use instance flag selftests: fix spelling mistaked "chaigned" -> "chained"
Diffstat (limited to 'tools/testing/selftests/openat2/helpers.c')
-rw-r--r--tools/testing/selftests/openat2/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/openat2/helpers.c b/tools/testing/selftests/openat2/helpers.c
index e9a6557ab16f..5074681ffdc9 100644
--- a/tools/testing/selftests/openat2/helpers.c
+++ b/tools/testing/selftests/openat2/helpers.c
@@ -46,7 +46,7 @@ int sys_renameat2(int olddirfd, const char *oldpath,
int touchat(int dfd, const char *path)
{
- int fd = openat(dfd, path, O_CREAT);
+ int fd = openat(dfd, path, O_CREAT, 0700);
if (fd >= 0)
close(fd);
return fd;