1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/archivers/rpm/files/patch-bb
Yukihiro Nakai 3673ac35bb Update to 3.0.6
PR:		misc/21801
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-10-17 08:42:03 +00:00

21 lines
615 B
Plaintext

--- lib/rpmrc.c.orig Thu Sep 14 02:29:18 2000
+++ lib/rpmrc.c Wed Oct 4 23:03:36 2000
@@ -13,7 +13,7 @@
#include "misc.h"
-static const char *defrcfiles = LIBRPMRC_FILENAME ":/etc/rpmrc:~/.rpmrc";
+static const char *defrcfiles = LIBRPMRC_FILENAME ":%%PREFIX%%/etc/rpmrc:~/.rpmrc";
struct machCacheEntry {
const char * name;
@@ -858,7 +858,7 @@
/* we are on ncr-sysv4 */
char *prelid = NULL;
FD_t fd;
- fd = Fopen("/etc/.relid", "r.fdio");
+ fd = Fopen("%%PREFIX%%/etc/.relid", "r.fdio");
if (!Ferror(fd)) {
chptr = (char *) xcalloc(1, 256);
if (chptr != NULL) {