diff options
-rw-r--r-- | libsandbox/wrapper-funcs/creat.c | 7 |
1 files changed, 2 insertions, 5 deletions
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; } |