rpms/vim/devel 6.3.067, NONE, 1.1 README.patches, 1.30, 1.31 vim.spec, 1.62, 1.63

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Mar 23 14:52:22 UTC 2005


Update of /cvs/dist/rpms/vim/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv2874

Modified Files:
	README.patches vim.spec 
Added Files:
	6.3.067 
Log Message:
* Wed Mar 23 2005 Karsten Hopp <karsten at redhat.de> 6.3.067-1
- Newly created files got execute permission (intruduced by patch 66)
  #151667



--- NEW FILE 6.3.067 ---
To: vim-dev at vim.org
Subject: Patch 6.3.067
Fcc: outbox
From: Bram Moolenaar <Bram at moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------

Patch 6.3.067 (after 6.3.066)
Problem:    Newly created file gets execute permission.
Solution:   Check for "perm" to be negative before using it.
Files:	    src/fileio.c


*** ../vim-6.3.030/src/fileio.c	Fri Mar 18 13:37:34 2005
--- src/fileio.c	Fri Mar 18 19:16:29 2005
***************
*** 3698,3704 ****
      while ((fd = mch_open((char *)wfname, O_WRONLY | O_EXTRA | (append
  			? (forceit ? (O_APPEND | O_CREAT) : O_APPEND)
  			: (O_CREAT | O_TRUNC))
! 			, perm & 0777)) < 0)
      {
  	/*
  	 * A forced write will try to create a new file if the old one is
--- 3698,3704 ----
      while ((fd = mch_open((char *)wfname, O_WRONLY | O_EXTRA | (append
  			? (forceit ? (O_APPEND | O_CREAT) : O_APPEND)
  			: (O_CREAT | O_TRUNC))
! 			, perm < 0 ? 0666 : (perm & 0777))) < 0)
      {
  	/*
  	 * A forced write will try to create a new file if the old one is
***************
*** 4262,4268 ****
  
  	    if (org == NULL
  		    || (empty_fd = mch_open(org, O_CREAT | O_EXTRA | O_EXCL,
! 							    perm & 0777)) < 0)
  	      EMSG(_("E206: patchmode: can't touch empty original file"));
  	    else
  	      close(empty_fd);
--- 4262,4268 ----
  
  	    if (org == NULL
  		    || (empty_fd = mch_open(org, O_CREAT | O_EXTRA | O_EXCL,
! 					perm < 0 ? 0666 : (perm & 0777))) < 0)
  	      EMSG(_("E206: patchmode: can't touch empty original file"));
  	    else
  	      close(empty_fd);
*** ../vim-6.3.030/src/version.c	Fri Mar 18 13:37:34 2005
--- src/version.c	Fri Mar 18 19:17:45 2005
***************
*** 643,644 ****
--- 643,646 ----
  {   /* Add new patch number below this line */
+ /**/
+     67,
  /**/

-- 
If corn oil comes from corn, where does baby oil come from?

 /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///


Index: README.patches
===================================================================
RCS file: /cvs/dist/rpms/vim/devel/README.patches,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- README.patches	18 Mar 2005 12:54:28 -0000	1.30
+++ README.patches	23 Mar 2005 14:52:18 -0000	1.31
@@ -91,3 +91,4 @@
   1586  6.3.064  line2byte(line("$") + 1) sometimes returns the wrong number  
   4436  6.3.065  there was no digraph for euro in Unicode
   4728  6.3.066  permissions of backup file may be wrong
+  2200  6.3.067  (after 6.3.066) newly created file gets execute permission


Index: vim.spec
===================================================================
RCS file: /cvs/dist/rpms/vim/devel/vim.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- vim.spec	18 Mar 2005 12:54:28 -0000	1.62
+++ vim.spec	23 Mar 2005 14:52:20 -0000	1.63
@@ -21,7 +21,7 @@
 
 %define baseversion 6.3
 %define vimdir vim63
-%define patchlevel 066
+%define patchlevel 067
 
 Summary: The VIM editor.
 Name: vim
@@ -117,6 +117,7 @@
 Patch064: ftp://ftp.vim.org/pub/vim/patches/6.3.064
 Patch065: ftp://ftp.vim.org/pub/vim/patches/6.3.065
 Patch066: ftp://ftp.vim.org/pub/vim/patches/6.3.066
+Patch067: ftp://ftp.vim.org/pub/vim/patches/6.3.067
 
 Patch3000: vim-6.1-syntax.patch
 Patch3001: vim-6.2-rh1.patch
@@ -310,6 +311,7 @@
 %patch064 -p0
 %patch065 -p0
 %patch066 -p0
+%patch067 -p0
 
 
 %patch3000 -p1
@@ -579,6 +581,10 @@
 %endif
 
 %changelog
+* Wed Mar 23 2005 Karsten Hopp <karsten at redhat.de> 6.3.067-1
+- Newly created files got execute permission (intruduced by patch 66)
+  #151667
+
 * Fri Mar 18 2005 Karsten Hopp <karsten at redhat.de> 6.3.066-1
 - patchlevel 66
 




More information about the fedora-cvs-commits mailing list