disable saving history while in sandbox mode.

closes #2217
This commit is contained in:
Jeffrey Crowell 2015-03-20 22:43:07 -04:00 committed by jcrowell
parent 6be8b58744
commit ebfb57e745

View File

@ -830,6 +830,10 @@ static int cmd_system(void *data, const char *input) {
int ret = 0;
switch (*input) {
case '!':
if (r_sandbox_enable (0)) {
eprintf ("This command is disabled in sandbox mode\n");
return 0;
}
if (input[1]) {
int olen;
char *out = NULL;