Browse Source

include vendor patch which fixes a segfault

Ralf S. Engelschall 22 years ago
parent
commit
02a293e7ef
1 changed files with 17 additions and 0 deletions
  1. 17 0
      openpkg/rpm.patch.bugfix

+ 17 - 0
openpkg/rpm.patch.bugfix

@@ -184,3 +184,20 @@ Index: rpmio/macro.c
  			se = grabArgs(mb, me, fe, grab);
  		} else {
  			addMacro(mb->mc, "**", NULL, "", mb->depth);
+
++---------------------------------------------------------------------------
+| Backported RPM vendor patch:
+| "fix: packages w/o file colors segfault"
+| (cvs diff -r2.41.2.6 -r2.41.2.7 lib/rpmfi.c)
++---------------------------------------------------------------------------
+Index: lib/rpmfi.c
+--- lib/rpmfi.c	17 Jul 2003 22:44:28 -0000	1.1.1.3
++++ lib/rpmfi.c	28 Aug 2003 13:05:42 -0000
+@@ -866,6 +866,7 @@
+ 	*fn = '\0';
+ 	fnlen = stpcpy( stpcpy(fn, dirNames[dirIndexes[i]]), baseNames[i]) - fn;
+ 
++if (fColors != NULL)
+ dColors[dirIndexes[i]] |= fColors[i];
+ 	/*
+ 	 * See if this file path needs relocating.