Skip to content
Snippets Groups Projects
Commit df78f7a4 authored by Luigi Scarso's avatar Luigi Scarso
Browse files

restrictedshell has a negated logic -- !!! WARNING: WORK IN PROGRESS !!!

parent baa2615d
No related branches found
No related tags found
No related merge requests found
......@@ -231,11 +231,14 @@ static int get_hash_size(void)
static lua_Number shell_escape_state(void)
{
if (shellenabledp <= 0) {
/* No shell at all. */
return (lua_Number) 0;
} else if (restrictedshell == 0) {
return (lua_Number) 1;
} else {
/* Shell has no restriction. */
return (lua_Number) 2;
} else {
/* Shell has restrictions, see cnf file. */
return (lua_Number) 1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment