summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/fuse/bug-1126048.c2
-rw-r--r--tests/bugs/nfs/bug-1210338.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/fuse/bug-1126048.c b/tests/bugs/fuse/bug-1126048.c
index 5b9afafef0f..60329955258 100644
--- a/tests/bugs/fuse/bug-1126048.c
+++ b/tests/bugs/fuse/bug-1126048.c
@@ -19,7 +19,7 @@ main (int argc, char **argv)
char *cmd = argv[1];
printf ("cmd is: %s\n", cmd);
- fd = open("a.txt", O_CREAT|O_RDWR);
+ fd = open("a.txt", O_CREAT|O_RDWR, 0644);
if (fd < 0)
printf ("open failed: %s\n", strerror(errno));
diff --git a/tests/bugs/nfs/bug-1210338.c b/tests/bugs/nfs/bug-1210338.c
index 77f56eb9d0b..7a17b9d68ce 100644
--- a/tests/bugs/nfs/bug-1210338.c
+++ b/tests/bugs/nfs/bug-1210338.c
@@ -14,7 +14,7 @@ main (int argc, char *argv[])
int ret = -1;
int fd = -1;
- fd = open (argv[1], O_CREAT|O_EXCL);
+ fd = open (argv[1], O_CREAT|O_EXCL, 0644);
if (fd == -1) {
fprintf (stderr, "creation of the file %s failed (%s)\n", argv[1],