aboutsummaryrefslogtreecommitdiff
path: root/testcases/kernel/syscalls/open_by_handle_at/open_by_handle_at01.c
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/kernel/syscalls/open_by_handle_at/open_by_handle_at01.c')
-rw-r--r--testcases/kernel/syscalls/open_by_handle_at/open_by_handle_at01.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/kernel/syscalls/open_by_handle_at/open_by_handle_at01.c b/testcases/kernel/syscalls/open_by_handle_at/open_by_handle_at01.c
index 76be720ca..6171229f0 100644
--- a/testcases/kernel/syscalls/open_by_handle_at/open_by_handle_at01.c
+++ b/testcases/kernel/syscalls/open_by_handle_at/open_by_handle_at01.c
@@ -55,7 +55,7 @@ static void setup(void)
dir_fd = SAFE_OPEN(TEST_DIR, O_DIRECTORY);
SAFE_CHDIR(TEST_DIR);
SAFE_TOUCH(TEST_FILE, 0600, NULL);
- file_fd = SAFE_OPEN("foo_file", O_RDWR | O_CREAT);
+ file_fd = SAFE_OPEN("foo_file", O_RDWR | O_CREAT, 0600);
f_fhp = allocate_file_handle(AT_FDCWD, TEST_FILE);
d_fhp = allocate_file_handle(AT_FDCWD, TEST_FILE);