rpms/sed/F-8 sed-4.1.5-follow.patch,1.1,1.2 sed.spec,1.44,1.45

Jiří Moskovčák jmoskovc at fedoraproject.org
Thu Nov 13 16:57:43 UTC 2008


Author: jmoskovc

Update of /cvs/extras/rpms/sed/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29955

Modified Files:
	sed-4.1.5-follow.patch sed.spec 
Log Message:
Improved follow.patch (rhbz#470912)


sed-4.1.5-follow.patch:

Index: sed-4.1.5-follow.patch
===================================================================
RCS file: /cvs/extras/rpms/sed/F-8/sed-4.1.5-follow.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sed-4.1.5-follow.patch	8 Dec 2006 21:06:49 -0000	1.1
+++ sed-4.1.5-follow.patch	13 Nov 2008 16:57:43 -0000	1.2
@@ -71,10 +71,10 @@
 +	    buf2 [err] = '\0';
 +
 +	  /* need to handle relative paths with care */
-+	  if (buf2[0] != '/')
-+	    {
 +	      dir = dirname (buf);    // dir part of orig path
 +	      int len = strlen (dir); // orig path len
++	  if (buf2[0] != '/' && len != 1 && dir[0] != '.')
++	    {
 +	      buf[len] = '/';
 +	      strncpy (buf+len+1, buf2, bufsize - len - 1);
 +	      if (buf[bufsize-1] != 0)


Index: sed.spec
===================================================================
RCS file: /cvs/extras/rpms/sed/F-8/sed.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- sed.spec	5 Oct 2007 15:06:53 -0000	1.44
+++ sed.spec	13 Nov 2008 16:57:43 -0000	1.45
@@ -6,7 +6,7 @@
 Summary: A GNU stream text editor
 Name: sed
 Version: 4.1.5
-Release: 9%{?dist}
+Release: 10%{?dist}
 License: GPLv2+
 Group: Applications/Text
 URL: http://sed.sourceforge.net/
@@ -70,6 +70,10 @@
 %{_mandir}/man*/*
 
 %changelog
+* Thu Nov 13 2008 Jiri Moskovcak <jmoskovc at redhat.com> 4.1.5-10
+- improved follow.patch (thanks to Arkadiusz Miskiewicz for initial patch)
+- Resolves: #470912
+
 * Thu Oct  4 2007 Petr Machata <pmachata at redhat.com> - 4.1.5-9
 - Fix licensing tag.
 - Clean up per merge review comments.




More information about the fedora-extras-commits mailing list