xbps_unpack_binary_pkg: fix previous and also handle ERANGE after unlink.
This commit is contained in:
parent
f29bbc7029
commit
fe2bbb675f
@ -167,6 +167,7 @@ remove_file_wrong_hash(prop_dictionary_t d, const char *file)
|
|||||||
(void)unlink(file);
|
(void)unlink(file);
|
||||||
xbps_warn_printf("Removed `%s' entry with "
|
xbps_warn_printf("Removed `%s' entry with "
|
||||||
"unmatched hash.\n", file);
|
"unmatched hash.\n", file);
|
||||||
|
rv = 0;
|
||||||
} else if (rv == ENOENT) {
|
} else if (rv == ENOENT) {
|
||||||
/* simply ignore */
|
/* simply ignore */
|
||||||
rv = 0;
|
rv = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user