aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index 5edc604..a7cab34 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2059,9 +2059,9 @@ static int apk_db_unpack_pkg(struct apk_database *db,
if (need_copy) {
if (r == 0)
- renameat(db->cachetmp_fd, file, db->cache_fd, file);
+ renameat(db->cachetmp_fd, item, db->cache_fd, item);
else
- unlinkat(db->cachetmp_fd, file, 0);
+ unlinkat(db->cachetmp_fd, item, 0);
}
if (r != 0) {