From: George Koehler Date: Tue, 8 Nov 2016 20:35:02 +0000 (-0500) Subject: Add the missing return in plat/osx/libsys/creat.c X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ed7fb69f7953a071c62b44e0593b101691111a44;p=ack.git Add the missing return in plat/osx/libsys/creat.c Before now, it might have worked by accident if the return value from open() stayed in the function return area. --- diff --git a/plat/osx/libsys/creat.c b/plat/osx/libsys/creat.c index df2c82275..3a350e357 100644 --- 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); }