aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsandbox/wrapper-funcs/getcwd.c')
-rw-r--r--libsandbox/wrapper-funcs/getcwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsandbox/wrapper-funcs/getcwd.c b/libsandbox/wrapper-funcs/getcwd.c
index 5814f3d..04c1298 100644
--- a/libsandbox/wrapper-funcs/getcwd.c
+++ b/libsandbox/wrapper-funcs/getcwd.c
@@ -21,11 +21,11 @@ char *WRAPPER_NAME(WRAPPER_ARGS_PROTO)
* used by some getcwd() implementations and resolves to the sandbox
* opendir() wrapper, causing infinit recursion and finially crashes.
*/
- sandbox_on = 0;
+ sandbox_on = false;
check_dlsym(WRAPPER_TRUE_NAME, WRAPPER_SYMNAME,
WRAPPER_SYMVER);
result = WRAPPER_TRUE_NAME(buf, size);
- sandbox_on = 1;
+ sandbox_on = true;
return result;
}