aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-05 15:14:07 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-05 15:14:07 +0000
commita6433b10fefd58dbd4dbc114f4bb6df8ade55222 (patch)
tree20468a1b0480bf72f68e92c05f8b70f048ec74c0 /src
parentAbort on possible security breach. (diff)
downloadsandbox-a6433b10fefd58dbd4dbc114f4bb6df8ade55222.tar.gz
sandbox-a6433b10fefd58dbd4dbc114f4bb6df8ade55222.tar.bz2
sandbox-a6433b10fefd58dbd4dbc114f4bb6df8ade55222.zip
Use is_env_on(ENV_SANDBOX_ON) now that we have is_env_on().
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/libsandbox.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsandbox.c b/src/libsandbox.c
index 426eb2c..9148dcf 100644
--- a/src/libsandbox.c
+++ b/src/libsandbox.c
@@ -1543,9 +1543,7 @@ static int is_sandbox_on()
*
* Azarah (3 Aug 2002)
*/
- if ((NULL != getenv(ENV_SANDBOX_ON)) &&
- ((0 == strncmp(getenv(ENV_SANDBOX_ON), "1", 1)) ||
- (0 == strncmp(getenv(ENV_SANDBOX_ON), "yes", 3))) &&
+ if ((is_env_on(ENV_SANDBOX_ON)) &&
(1 == sandbox_on) &&
(NULL != getenv(ENV_SANDBOX_ACTIVE)) &&
(0 == strncmp(getenv(ENV_SANDBOX_ACTIVE), SANDBOX_ACTIVE, 13))) {