Mercurial > vim
comparison src/buffer.c @ 15056:a751ecdd07cc v8.1.0539
patch 8.1.0539: cannot build without the sandbox
commit https://github.com/vim/vim/commit/82e8c92ebef5afcac0c0fdb706ff163f9b3366f7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 20 13:32:36 2018 +0100
patch 8.1.0539: cannot build without the sandbox
Problem: Cannot build without the sandbox.
Solution: Set the secure option instead of using the sandbox. Also restrict
the characters from 'spelllang' that are used for LANG.vim.
(suggested by Yasuhiro Matsumoto)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Nov 2018 13:45:08 +0100 |
parents | 2d6e930c7613 |
children | 9df130fd5e0d |
comparison
equal
deleted
inserted
replaced
15055:bf6188c15027 | 15056:a751ecdd07cc |
---|---|
5521 current_sctx.sc_sid = SID_MODELINE; | 5521 current_sctx.sc_sid = SID_MODELINE; |
5522 current_sctx.sc_seq = 0; | 5522 current_sctx.sc_seq = 0; |
5523 current_sctx.sc_lnum = 0; | 5523 current_sctx.sc_lnum = 0; |
5524 #endif | 5524 #endif |
5525 // Make sure no risky things are executed as a side effect. | 5525 // Make sure no risky things are executed as a side effect. |
5526 ++sandbox; | 5526 ++secure; |
5527 | 5527 |
5528 retval = do_set(s, OPT_MODELINE | OPT_LOCAL | flags); | 5528 retval = do_set(s, OPT_MODELINE | OPT_LOCAL | flags); |
5529 | 5529 |
5530 --sandbox; | 5530 --secure; |
5531 #ifdef FEAT_EVAL | 5531 #ifdef FEAT_EVAL |
5532 current_sctx = save_current_sctx; | 5532 current_sctx = save_current_sctx; |
5533 #endif | 5533 #endif |
5534 if (retval == FAIL) /* stop if error found */ | 5534 if (retval == FAIL) /* stop if error found */ |
5535 break; | 5535 break; |