From: Martin Pitt Date: Tue, 10 Jul 2012 07:19:50 +0000 (+0200) Subject: testsuite: path wrapper: Fix open() with 3 arguments X-Git-Tag: v10~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4281cee076a6dc1afeab2b8b0619b3a6eba4af98;p=thirdparty%2Fkmod.git testsuite: path wrapper: Fix open() with 3 arguments Properly return the original libc return value in the case that open() is called with 3 arguments. --- diff --git a/testsuite/path.c b/testsuite/path.c index 204c79f9..4363e505 100644 --- a/testsuite/path.c +++ b/testsuite/path.c @@ -133,7 +133,7 @@ TS_EXPORT int open(const char *path, int flags, ...) va_start(ap, flags); mode = va_arg(ap, mode_t); va_end(ap); - _open(p, flags, mode); + return _open(p, flags, mode); } return _open(p, flags);