public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Nasrat <pnasrat@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Fix debugedit for relative paths (#232222)
Date: Mon, 23 Nov 2026 09:24:06 GMT [thread overview]
Message-ID: <179542584624.1.17520245398118354577.rpms-rpm-fbf185c22071@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : fbf185c2207166e357a2c9d6e39475785d741367
Author : Paul Nasrat <pnasrat@fedoraproject.org>
Date : 2007-04-23T10:37:25+00:00
Stats : +39/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/fbf185c2207166e357a2c9d6e39475785d741367?branch=pmatilai-v6
Log:
- Fix debugedit for relative paths (#232222)
- Resolves: rhbz#232222
---
diff --git a/rpm-debugedit-incremental-fix.patch b/rpm-debugedit-incremental-fix.patch
new file mode 100644
index 0000000..0935a63
--- /dev/null
+++ b/rpm-debugedit-incremental-fix.patch
@@ -0,0 +1,33 @@
+--- 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))
diff --git a/rpm.spec b/rpm.spec
index c3c9ed4..af1873e 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -17,7 +17,7 @@ Summary: The RPM package management system
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 @@ Patch39: rpm-4.4.2-no-ppc-asm.patch
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 @@ shell-like rules.
%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 @@ exit 0
%{__includedir}/popt.h
%changelog
+* Mon Apr 23 2007 Paul Nasrat <pnasrat@redhat.com> - 4.4.2-45
+- Fix debugedit for relative paths (#232222)
+
* Mon Apr 16 2007 Paul Nasrat <pnasrat@redhat.com> - 4.4.2-44
- Set default verify flags for %%doc (#235353)
- Revert to old configure line
reply other threads:[~2026-11-23 9:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179542584624.1.17520245398118354577.rpms-rpm-fbf185c22071@fedoraproject.org \
--to=pnasrat@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox