summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-16 04:50:57 -0500
committerMike Frysinger <vapier@gentoo.org>2012-01-16 15:55:11 -0500
commitfe60f8005bde1d69ed539d57c479aabc9027a0dd (patch)
treeaa358497d2c8d289ac972920482a54795bd836ae /test
parent68bfc298273d402d7c5a440f8af25264d1921133 (diff)
tests: tst-futimens1: add missing mode args to open()
Since we use O_CREAT with open(), need to make sure to pass in mode too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'test')
-rw-r--r--test/time/tst-futimens1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/time/tst-futimens1.c b/test/time/tst-futimens1.c
index ed7f44feb..2c25bd4de 100644
--- a/test/time/tst-futimens1.c
+++ b/test/time/tst-futimens1.c
@@ -46,7 +46,7 @@ int do_test(int argc, char **argv) {
name = tests[i].name;
if (*name != '.')
unlink(name);
- fd = open(name, tests[i].flags);
+ fd = open(name, tests[i].flags, 0660);
if (fd < 0)
abort();
errno = 0;