summaryrefslogtreecommitdiff
path: root/test/misc/tst-nftw.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/misc/tst-nftw.c')
-rw-r--r--test/misc/tst-nftw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/misc/tst-nftw.c b/test/misc/tst-nftw.c
index 970dfc2..7a08c78 100644
--- a/test/misc/tst-nftw.c
+++ b/test/misc/tst-nftw.c
@@ -35,9 +35,9 @@ do_test(void)
perror("Creating path");
if ((mkdir(subpath, 0700)) < 0)
perror("Creating subpath");
- if ((open(filepath, O_CREAT)) < 0)
+ if ((open(filepath, O_CREAT, 0600)) < 0)
perror("Opening filepath");
- if ((open(filesubpath, O_CREAT)) < 0)
+ if ((open(filesubpath, O_CREAT, 0600)) < 0)
perror("Opening filesubpath");
if (nftw(path, process_one_entry, 100, (FTW_CHDIR|FTW_DEPTH|FTW_PHYS)) < 0)