]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: path wrapper: Fix open() with 3 arguments
authorMartin Pitt <martinpitt@gnome.org>
Tue, 10 Jul 2012 07:19:50 +0000 (09:19 +0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 10 Jul 2012 13:31:40 +0000 (10:31 -0300)
Properly return the original libc return value in the case that open() is
called with 3 arguments.

testsuite/path.c

index 204c79f9a6c1f49ce0f89fa4f31a3722dad5b803..4363e50517bc924cde49396158591684410e7a2f 100644 (file)
@@ -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);