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); }