summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-05 21:25:15 +0000
committerDenis Vlasenko2007-04-05 21:25:15 +0000
commit1bb552b1d9da749050274e0a9cb10b672db22d77 (patch)
treea638c7bbef95bd2c9d72c2e16a5cf4f7b6298458 /archival
parent9020d850bf2b0fd547b545e5e366c7ed284a33cb (diff)
downloadbusybox-1bb552b1d9da749050274e0a9cb10b672db22d77.zip
busybox-1bb552b1d9da749050274e0a9cb10b672db22d77.tar.gz
libbb: add xunlink()
patch: do not try to delete same file twice
Diffstat (limited to 'archival')
-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 */