tSave full path instead of basename in pack struct - pm - barely a pack manager
HTML git clone git://z3bra.org/pm
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c98e93ed70eba1d6a5f7fce6b87e15179d5d3171
DIR parent ba9dca9b6a14c82f79f297ebc16736c12189f1cf
HTML Author: z3bra <willyatmailoodotorg>
Date: Fri, 9 Sep 2016 13:38:46 +0200
Save full path instead of basename in pack struct
Diffstat:
M pm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/pm.c b/pm.c
t@@ -216,7 +216,7 @@ pack_load_tarball(char *path)
for (i=0; i<nmatch; i++)
sublen[i] = sub[i].rm_eo - sub[i].rm_so;
- pack->path = strdup(fn);
+ pack->path = strdup(path);
pack->name = malloc(sublen[1] + 1);
pack->version = malloc(sublen[2] + 1);