commit 795fb36056da220ed2680e19dbb1a4571d4436b3
parent 7f0603995e577b87a87cc5be70991b07e1065346
Author: sin <sin@2f30.org>
Date: Fri, 20 Jun 2014 17:26:11 +0100
Populate pe->rpath as well
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/db.c b/db.c
@@ -335,7 +335,10 @@ pkg_load_file(struct db *db, const char *filename)
pe = emalloc(sizeof(*pe));
estrlcpy(pe->path, db->prefix, sizeof(pe->path));
estrlcat(pe->path, "/", sizeof(pe->path));
- estrlcat(pe->path, archive_entry_pathname(entry), sizeof(pe->path));
+ estrlcat(pe->path, archive_entry_pathname(entry),
+ sizeof(pe->path));
+ estrlcpy(pe->rpath, archive_entry_pathname(entry),
+ sizeof(pe->rpath));
pe->next = pkg->head;
pkg->head = pe;
}