aboutsummaryrefslogtreecommitdiff
path: root/src/pow_lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pow_lua.c')
-rw-r--r--src/pow_lua.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pow_lua.c b/src/pow_lua.c
index cd71c87..7cf14b4 100644
--- a/src/pow_lua.c
+++ b/src/pow_lua.c
@@ -7,8 +7,6 @@
#include "string.h"
int pow_lua_extract(lua_State *L) {
- printf("extract called\n");
-
int r;
ssize_t size;
@@ -93,7 +91,10 @@ int pow_lua_extract(lua_State *L) {
}
snprintf(full, need, "%s/%s", dest, cur);
+
archive_entry_set_pathname(entry, full);
+
+ free(full);
}
r = archive_read_extract(a, entry, 0);