lib/package_unpack: ignore remove(2) return value (CID #98681).
This commit is contained in:
parent
58074b5358
commit
78f9a97980
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user