diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-01-16 04:50:57 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-01-16 15:55:11 -0500 |
commit | fe60f8005bde1d69ed539d57c479aabc9027a0dd (patch) | |
tree | aa358497d2c8d289ac972920482a54795bd836ae | |
parent | 68bfc298273d402d7c5a440f8af25264d1921133 (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>
-rw-r--r-- | test/time/tst-futimens1.c | 2 |
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; |