summaryrefslogtreecommitdiff
path: root/tests/checkfs/checkfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/checkfs/checkfs.c')
-rw-r--r--tests/checkfs/checkfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkfs/checkfs.c b/tests/checkfs/checkfs.c
index 3224d2b..8e74da8 100644
--- a/tests/checkfs/checkfs.c
+++ b/tests/checkfs/checkfs.c
@@ -414,7 +414,7 @@ void make_new_file(char *filename){
fprintf(stderr, "Creating File:%s. ", filename);
- if((dfd = open(filename, O_RDWR | O_CREAT | O_SYNC)) <= 0)
+ if((dfd = open(filename, O_RDWR | O_CREAT | O_SYNC, S_IRWXU)) <= 0)
{
printf("Error! Cannot open file: %s\n",filename);
perror("Error");