From 4281cee076a6dc1afeab2b8b0619b3a6eba4af98 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 10 Jul 2012 09:19:50 +0200 Subject: [PATCH] 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. --- testsuite/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/path.c b/testsuite/path.c index 204c79f..4363e50 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); -- 2.39.2