Mercurial > vim
changeset 428:7290ddc7ba55
updated for version 7.0111
author | vimboss |
---|---|
date | Wed, 20 Jul 2005 21:57:28 +0000 |
parents | 73e8af3a49e7 |
children | 5c10774e3c98 |
files | src/os_unix.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -5083,14 +5083,16 @@ mch_expand_wildcards(num_pat, pat, num_f if (!have_wildcard(num_pat, pat)) return save_patterns(num_pat, pat, num_file, file); +# ifdef HAVE_SANDBOX + /* Don't allow any shell command in the sandbox. */ + if (sandbox != 0 && check_secure()) + return FAIL; +# endif + /* * Don't allow the use of backticks in secure and restricted mode. */ - if (secure || restricted -# ifdef HAVE_SANDBOX - || sandbox != 0 -# endif - ) + if (secure || restricted) for (i = 0; i < num_pat; ++i) if (vim_strchr(pat[i], '`') != NULL && (check_restricted() || check_secure()))