comparison src/ex_cmds.c @ 15748:93b78c4a7cd5 v8.1.0881

patch 8.1.0881: can execute shell commands in rvim through interfaces commit https://github.com/vim/vim/commit/8c62a08faf89663e5633dc5036cd8695c80f1075 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 8 14:34:10 2019 +0100 patch 8.1.0881: can execute shell commands in rvim through interfaces Problem: Can execute shell commands in rvim through interfaces. Solution: Disable using interfaces in restricted mode. Allow for writing file with writefile(), histadd() and a few others.
author Bram Moolenaar <Bram@vim.org>
date Fri, 08 Feb 2019 14:45:07 +0100
parents ad8b2c109b22
children aa80c63f34bb
comparison
equal deleted inserted replaced
15747:ac3d51cbfc83 15748:93b78c4a7cd5
4773 int 4773 int
4774 check_restricted(void) 4774 check_restricted(void)
4775 { 4775 {
4776 if (restricted) 4776 if (restricted)
4777 { 4777 {
4778 emsg(_("E145: Shell commands not allowed in rvim")); 4778 emsg(_("E145: Shell commands and some functionality not allowed in rvim"));
4779 return TRUE; 4779 return TRUE;
4780 } 4780 }
4781 return FALSE; 4781 return FALSE;
4782 } 4782 }
4783 4783