OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf1840b
)
tests: fdopen: add missing mode args to open()
author
Mike Frysinger
<vapier@gentoo.org>
Mon, 16 Jan 2012 09:33:44 +0000
(
04:33
-0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Mon, 16 Jan 2012 20:55:10 +0000
(15:55 -0500)
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>
test/misc/fdopen.c
patch
|
blob
|
history
diff --git
a/test/misc/fdopen.c
b/test/misc/fdopen.c
index
f64cfb6
..
97e66de
100644
(file)
--- 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);