public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f94e97
)
Add the missing return in plat/osx/libsys/creat.c
author
George Koehler
<xkernigh@netscape.net>
Tue, 8 Nov 2016 20:35:02 +0000
(15:35 -0500)
committer
George Koehler
<xkernigh@netscape.net>
Tue, 8 Nov 2016 20:35:02 +0000
(15:35 -0500)
Before now, it might have worked by accident if the return value from
open() stayed in the function return area.
plat/osx/libsys/creat.c
patch
|
blob
|
history
diff --git
a/plat/osx/libsys/creat.c
b/plat/osx/libsys/creat.c
index
df2c822
..
3a350e3
100644
(file)
--- a/
plat/osx/libsys/creat.c
+++ b/
plat/osx/libsys/creat.c
@@
-2,5
+2,5
@@
int creat(const char *path, mode_t mode)
{
- open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
+
return
open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
}