lib/package_unpack: ignore remove(2) return value (CID #98681).

This commit is contained in:
Juan RP 2015-07-26 08:22:27 +02:00
parent 58074b5358
commit 78f9a97980

View File

@ -291,7 +291,7 @@ unpack_archive(struct xbps_handle *xhp,
*/
if (file_exists &&
((entry_statp->st_mode & S_IFMT) != (st.st_mode & S_IFMT)))
remove(entry_pname);
(void)remove(entry_pname);
if (!force && (entry_type == AE_IFREG)) {
buf = strchr(entry_pname, '.') + 1;