|
Karsten Hopp |
ac0d0c |
To: vim-dev@vim.org
|
|
Karsten Hopp |
ac0d0c |
Subject: Patch 7.1.169
|
|
Karsten Hopp |
ac0d0c |
Fcc: outbox
|
|
Karsten Hopp |
ac0d0c |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ac0d0c |
Mime-Version: 1.0
|
|
Karsten Hopp |
ac0d0c |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
ac0d0c |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ac0d0c |
------------
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
Patch 7.1.169
|
|
Karsten Hopp |
ac0d0c |
Problem: Using uninitialized variable when system() fails. (Dominique
|
|
Karsten Hopp |
ac0d0c |
Pelle)
|
|
Karsten Hopp |
ac0d0c |
Solution: Let system() return an empty string when it fails.
|
|
Karsten Hopp |
ac0d0c |
Files: src/eval.c
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
*** ../vim-7.1.168/src/eval.c Thu Nov 8 20:47:34 2007
|
|
Karsten Hopp |
ac0d0c |
--- src/eval.c Fri Nov 30 21:01:26 2007
|
|
Karsten Hopp |
ac0d0c |
***************
|
|
Karsten Hopp |
ac0d0c |
*** 15826,15832 ****
|
|
Karsten Hopp |
ac0d0c |
FILE *fd;
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
if (check_restricted() || check_secure())
|
|
Karsten Hopp |
ac0d0c |
! return;
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
if (argvars[1].v_type != VAR_UNKNOWN)
|
|
Karsten Hopp |
ac0d0c |
{
|
|
Karsten Hopp |
ac0d0c |
--- 15826,15832 ----
|
|
Karsten Hopp |
ac0d0c |
FILE *fd;
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
if (check_restricted() || check_secure())
|
|
Karsten Hopp |
ac0d0c |
! goto done;
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
if (argvars[1].v_type != VAR_UNKNOWN)
|
|
Karsten Hopp |
ac0d0c |
{
|
|
Karsten Hopp |
ac0d0c |
***************
|
|
Karsten Hopp |
ac0d0c |
*** 15837,15843 ****
|
|
Karsten Hopp |
ac0d0c |
if ((infile = vim_tempname('i')) == NULL)
|
|
Karsten Hopp |
ac0d0c |
{
|
|
Karsten Hopp |
ac0d0c |
EMSG(_(e_notmp));
|
|
Karsten Hopp |
ac0d0c |
! return;
|
|
Karsten Hopp |
ac0d0c |
}
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
fd = mch_fopen((char *)infile, WRITEBIN);
|
|
Karsten Hopp |
ac0d0c |
--- 15837,15843 ----
|
|
Karsten Hopp |
ac0d0c |
if ((infile = vim_tempname('i')) == NULL)
|
|
Karsten Hopp |
ac0d0c |
{
|
|
Karsten Hopp |
ac0d0c |
EMSG(_(e_notmp));
|
|
Karsten Hopp |
ac0d0c |
! goto done;
|
|
Karsten Hopp |
ac0d0c |
}
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
fd = mch_fopen((char *)infile, WRITEBIN);
|
|
Karsten Hopp |
ac0d0c |
*** ../vim-7.1.168/src/version.c Mon Dec 3 22:20:17 2007
|
|
Karsten Hopp |
ac0d0c |
--- src/version.c Fri Dec 7 17:07:32 2007
|
|
Karsten Hopp |
ac0d0c |
***************
|
|
Karsten Hopp |
ac0d0c |
*** 668,669 ****
|
|
Karsten Hopp |
ac0d0c |
--- 668,671 ----
|
|
Karsten Hopp |
ac0d0c |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ac0d0c |
+ /**/
|
|
Karsten Hopp |
ac0d0c |
+ 169,
|
|
Karsten Hopp |
ac0d0c |
/**/
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
--
|
|
Karsten Hopp |
ac0d0c |
% cat /usr/include/sys/errno.h
|
|
Karsten Hopp |
ac0d0c |
#define EPERM 1 /* Operation not permitted */
|
|
Karsten Hopp |
ac0d0c |
#define ENOENT 2 /* No such file or directory */
|
|
Karsten Hopp |
ac0d0c |
#define ESRCH 3 /* No such process */
|
|
Karsten Hopp |
ac0d0c |
[...]
|
|
Karsten Hopp |
ac0d0c |
#define EMACS 666 /* Too many macros */
|
|
Karsten Hopp |
ac0d0c |
%
|
|
Karsten Hopp |
ac0d0c |
|
|
Karsten Hopp |
ac0d0c |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ac0d0c |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ac0d0c |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
ac0d0c |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|