fix issues with reading and writing to tar archives

This commit is contained in:
lw-everestlinux committed 2025-03-31 20:59:33 -04:00
1 parent 0fad47d8ed
commit 95813fade2
1 file changed
+2 -2
+2 -2
View File
@@ -566,13 +566,13 @@ prepare_pkg(char PACKAGE[])
char buffer[BUFFER_SIZE];
size_t bytes_read;
pkg_old = fopen(PACKAGE, "r");
pkg_old = fopen(PACKAGE, "rb");
if (pkg_old == NULL) {
errlog("Failed to open source package file");
return 1;
}
pkg_new = fopen(PKG_NEW, "w");
pkg_new = fopen(PKG_NEW, "wb");
if (pkg_new == NULL) {
errlog("Failed to create destination package file");
fclose(pkg_old);