From ed7fb69f7953a071c62b44e0593b101691111a44 Mon Sep 17 00:00:00 2001 From: George Koehler Date: Tue, 8 Nov 2016 15:35:02 -0500 Subject: [PATCH] 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. --- plat/osx/libsys/creat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }