aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-29 03:39:06 -0500
committerMike Frysinger <vapier@gentoo.org>2008-11-29 03:39:06 -0500
commit63e2691d7d5c068ebd01f7576c4ae5a7df17a6d8 (patch)
tree0ae8727bd7b4a8bc74698bfbb5b52c7fff54fdad /libsandbox/wrapper-funcs/unlink.c
parentlibsandbox.map: beautify output (diff)
downloadsandbox-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.c2
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);