[git commit] tests: tst-futimens1: add missing mode args to open()

Mike Frysinger vapier at gentoo.org
Mon Jan 16 20:55:11 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=fe60f8005bde1d69ed539d57c479aabc9027a0dd
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Since we use O_CREAT with open(), need to make sure to pass in mode too.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 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 ed7f44f..2c25bd4 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;


More information about the uClibc-cvs mailing list