diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-01-16 04:33:44 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-01-16 15:55:10 -0500 |
commit | 70641563850aafa0a1030c94f981d16f5af0b90a (patch) | |
tree | 6dfe9c7a0adcbc4a786e2bad67150b1ede60c54d /test/misc/fdopen.c | |
parent | cf1840ba0a51b3145aaebdd882b84cbfe7b2e759 (diff) |
tests: fdopen: add missing mode args to open()
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@gentoo.org>
Diffstat (limited to 'test/misc/fdopen.c')
-rw-r--r-- | 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 f64cfb6b9..97e66de0a 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); |