diff options
author | Martin Pitt <martinpitt@gnome.org> | 2012-07-10 09:19:50 +0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-07-10 10:31:40 -0300 |
commit | 4281cee076a6dc1afeab2b8b0619b3a6eba4af98 (patch) | |
tree | 9b31d662932ae56356f87076ecd8cb032bf2c34d /testsuite | |
parent | 486f901392e7eb6a5e8139785b9ff2ade5a547a8 (diff) | |
download | kmod-4281cee076a6dc1afeab2b8b0619b3a6eba4af98.tar.gz kmod-4281cee076a6dc1afeab2b8b0619b3a6eba4af98.tar.bz2 kmod-4281cee076a6dc1afeab2b8b0619b3a6eba4af98.zip |
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.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |