From 40ac0686125f8a272346a546deb67a2c6f8ba843 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 20 Feb 2009 02:29:51 -0500 Subject: libsandbox: use sb_unwrapped_open() in creat wrapper Signed-off-by: Mike Frysinger --- libsandbox/wrapper-funcs/creat.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libsandbox/wrapper-funcs/creat.c') diff --git a/libsandbox/wrapper-funcs/creat.c b/libsandbox/wrapper-funcs/creat.c index 2d73c27..a7e99d6 100644 --- a/libsandbox/wrapper-funcs/creat.c +++ b/libsandbox/wrapper-funcs/creat.c @@ -18,11 +18,8 @@ int WRAPPER_NAME(WRAPPER_ARGS_PROTO) { int result = -1; - if (FUNCTION_SANDBOX_SAFE(pathname)) { - check_dlsym(true_open_DEFAULT, symname_open_DEFAULT, - symver_open_DEFAULT); - result = true_open_DEFAULT(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); - } + if (FUNCTION_SANDBOX_SAFE(pathname)) + result = sb_unwrapped_open_DEFAULT(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); return result; } -- cgit v1.2.3