fedora-cvs-commits@redhat.com
[Top] [All Lists]

rpms/rpm/devel rpm-debugedit-incremental-fix.patch, NONE, 1.1 rpm.spec,

Subject: rpms/rpm/devel rpm-debugedit-incremental-fix.patch, NONE, 1.1 rpm.spec, 1.228, 1.229
From:
Date: Mon, 23 Apr 2007 06:37:27 -0400
Author: pnasrat

Update of /cvs/dist/rpms/rpm/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5897

Modified Files:
        rpm.spec 
Added Files:
        rpm-debugedit-incremental-fix.patch 
Log Message:
* Mon Apr 23 2007 Paul Nasrat <pnasrat@xxxxxxxxxx> - 4.4.2-45
- Fix debugedit for relative paths (#232222)
- Resolves: rhbz#232222


rpm-debugedit-incremental-fix.patch:
 debugedit.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

--- NEW FILE rpm-debugedit-incremental-fix.patch ---
--- rpm-4.4.2/tools/debugedit.c.jj      2007-04-20 21:27:50.000000000 +0200
+++ rpm-4.4.2/tools/debugedit.c 2007-04-20 23:07:27.000000000 +0200
@@ -371,9 +371,10 @@ canonicalize_path (const char *s, char *
 
       if (s[0] == '.' && (s[1] == 0 || IS_DIR_SEPARATOR (s[1])))
        {
-         s ++;
-         if (!*s && d > droot)
-           d--;
+         s++;
+         if (*s)
+           while (IS_DIR_SEPARATOR (*s))
+             ++s;
        }
 
       else if (s[0] == '.' && s[1] == '.'
@@ -401,8 +402,6 @@ canonicalize_path (const char *s, char *
                  if (*s)
                    while (IS_DIR_SEPARATOR (*s))
                      s++;
-                 else if (d > droot)
-                   d--;
                }
            }
          else
@@ -411,7 +410,6 @@ canonicalize_path (const char *s, char *
              *d++ = *s++;
            }
        }
-
       else
        {
          while (*s && ! IS_DIR_SEPARATOR (*s))


Index: rpm.spec
===================================================================
RCS file: /cvs/dist/rpms/rpm/devel/rpm.spec,v
retrieving revision 1.228
retrieving revision 1.229
diff -u -r1.228 -r1.229
--- rpm.spec    19 Apr 2007 08:51:25 -0000      1.228
+++ rpm.spec    23 Apr 2007 10:37:25 -0000      1.229
@@ -17,7 +17,7 @@
 Name: rpm
 Version: 4.4.2
 %{expand: %%define rpm_version %{version}}
-Release: 44%{?dist}
+Release: 45%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source: rpm-%{rpm_version}.tar.gz
@@ -66,6 +66,7 @@
 Patch40: rpm-4.4.2-forkfailed.patch
 Patch41: rpm-4.4.2-cdiff.patch
 Patch42: rpm-4.4.2-docflags.patch
+Patch43: rpm-debugedit-incremental-fix.patch
 License: GPL
 Requires: patch > 2.5
 Prereq: shadow-utils
@@ -210,6 +211,7 @@
 %patch40 -p0 -b .forkfail
 %patch41 -p1 -b .cdiff
 %patch42 -p1 -b .docflags
+%patch43 -p1 -b .debugcan2
 
 # rebuild configure for ipv6
 autoconf
@@ -571,6 +573,9 @@
 %{__includedir}/popt.h
 
 %changelog
+* Mon Apr 23 2007 Paul Nasrat <pnasrat@xxxxxxxxxx> - 4.4.2-45
+- Fix debugedit for relative paths (#232222)
+
 * Mon Apr 16 2007 Paul Nasrat <pnasrat@xxxxxxxxxx> - 4.4.2-44
 - Set default verify flags for %%doc (#235353)
 - Revert to old configure line 

-- 
fedora-cvs-commits mailing list
fedora-cvs-commits@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-cvs-commits

<Prev in Thread] Current Thread [Next in Thread>
  • rpms/rpm/devel rpm-debugedit-incremental-fix.patch, NONE, 1.1 rpm.spec, 1.228, 1.229, fedora-cvs-commits <=