summaryrefslogtreecommitdiff
path: root/archival/bbunzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r--archival/bbunzip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index e16e6b0..3c3cc28 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -105,8 +105,7 @@ int bbunpack(char **argv,
if (new_name == filename)
filename[strlen(filename)] = '.';
}
- if (unlink(del) < 0)
- bb_perror_msg_and_die("cannot remove %s", del);
+ xunlink(del);
#if 0 /* Currently buggy - wrong name: "a.gz: 261% - replaced with a.gz" */
/* Extreme bloat for gunzip compat */