* libmisc/env.c: Fix sanitize_env() noslash support. This fixes

Alioth#311740. Thanks to Jason Cassell.
This commit is contained in:
nekral-guest
2010-01-24 17:23:42 +00:00
parent 291b28ac52
commit 5ba95d4c53
2 changed files with 7 additions and 2 deletions

View File

@@ -251,7 +251,7 @@ void sanitize_env (void)
if (strncmp (*cur, *bad, strlen (*bad)) != 0) {
continue;
}
if (strchr (*cur, '/') != NULL) {
if (strchr (*cur, '/') == NULL) {
continue; /* OK */
}
for (move = cur; NULL != *move; move++) {