diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-29 03:39:06 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-11-29 03:39:06 -0500 |
commit | 63e2691d7d5c068ebd01f7576c4ae5a7df17a6d8 (patch) | |
tree | 0ae8727bd7b4a8bc74698bfbb5b52c7fff54fdad /libsandbox/wrapper-funcs/unlink.c | |
parent | libsandbox.map: beautify output (diff) | |
download | sandbox-63e2691d7d5c068ebd01f7576c4ae5a7df17a6d8.tar.gz sandbox-63e2691d7d5c068ebd01f7576c4ae5a7df17a6d8.tar.bz2 sandbox-63e2691d7d5c068ebd01f7576c4ae5a7df17a6d8.zip |
libsandbox: push STRING_NAME into libsandbox.h
Since all FUNCTION_SANDBOX_SAFE() need to pass up the func name, push the
usage into the macro itself rather than every wrapper file.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/wrapper-funcs/unlink.c')
-rw-r--r-- | libsandbox/wrapper-funcs/unlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsandbox/wrapper-funcs/unlink.c b/libsandbox/wrapper-funcs/unlink.c index 39de69e..a5db943 100644 --- a/libsandbox/wrapper-funcs/unlink.c +++ b/libsandbox/wrapper-funcs/unlink.c @@ -29,7 +29,7 @@ int WRAPPER_NAME(WRAPPER_ARGS) } errno = old_errno; - if FUNCTION_SANDBOX_SAFE(STRING_NAME, pathname) { + if (FUNCTION_SANDBOX_SAFE(pathname)) { check_dlsym(WRAPPER_TRUE_NAME, WRAPPER_SYMNAME, WRAPPER_SYMVER); result = WRAPPER_TRUE_NAME(pathname); |