aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-20 02:29:51 -0500
committerMike Frysinger <vapier@gentoo.org>2009-02-20 02:29:51 -0500
commit40ac0686125f8a272346a546deb67a2c6f8ba843 (patch)
treee4d9fca96d5ab903bf95eee17d9cc8a91efcad53 /libsandbox/wrapper-funcs
parenthandling NEWS is a pain, so stub it (diff)
downloadsandbox-40ac0686125f8a272346a546deb67a2c6f8ba843.tar.gz
sandbox-40ac0686125f8a272346a546deb67a2c6f8ba843.tar.bz2
sandbox-40ac0686125f8a272346a546deb67a2c6f8ba843.zip
libsandbox: use sb_unwrapped_open() in creat wrapper
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/wrapper-funcs')
-rw-r--r--libsandbox/wrapper-funcs/creat.c7
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;
}