xbps-create: fix build introduced in previous.
This commit is contained in:
parent
72cefcfc83
commit
0f5ce62ba9
@ -427,6 +427,7 @@ process_destdir(const char *mutable_files)
|
|||||||
static void
|
static void
|
||||||
write_entry(struct archive *ar, struct archive_entry *entry)
|
write_entry(struct archive *ar, struct archive_entry *entry)
|
||||||
{
|
{
|
||||||
|
const char *name;
|
||||||
char *mmf;
|
char *mmf;
|
||||||
size_t mmflen, filelen;
|
size_t mmflen, filelen;
|
||||||
|
|
||||||
@ -446,7 +447,8 @@ write_entry(struct archive *ar, struct archive_entry *entry)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!xbps_mmap_file(archive_entry_sourcepath(entry), (void *)&mmf, &mmflen, &filelen))
|
name = archive_entry_sourcepath(entry);
|
||||||
|
if (!xbps_mmap_file(name, (void *)&mmf, &mmflen, &filelen))
|
||||||
die("cannot read %s file", name);
|
die("cannot read %s file", name);
|
||||||
|
|
||||||
archive_write_data(ar, mmf, filelen);
|
archive_write_data(ar, mmf, filelen);
|
||||||
|
Loading…
Reference in New Issue
Block a user