[git commit] tests: fdopen: add missing mode args to open()
Mike Frysinger
vapier at gentoo.org
Mon Jan 16 20:55:10 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=70641563850aafa0a1030c94f981d16f5af0b90a
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
We call open() with O_CREAT, so make sure we pass in the mode else
we might get build errors with fortify source.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
test/misc/fdopen.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/misc/fdopen.c b/test/misc/fdopen.c
index f64cfb6..97e66de 100644
--- a/test/misc/fdopen.c
+++ b/test/misc/fdopen.c
@@ -33,7 +33,7 @@ main (int argc, char *argv[])
assert (fclose (fp) == 0);
fp = NULL;
- fd = open (name, O_RDWR|O_CREAT);
+ fd = open (name, O_RDWR|O_CREAT, 0660);
assert (fd != -1);
assert (lseek (fd, 5, SEEK_SET) == 5);
More information about the uClibc-cvs
mailing list