diff options
author | Denis Vlasenko | 2007-04-05 21:25:15 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-05 21:25:15 +0000 |
commit | 1bb552b1d9da749050274e0a9cb10b672db22d77 (patch) | |
tree | a638c7bbef95bd2c9d72c2e16a5cf4f7b6298458 /archival | |
parent | 9020d850bf2b0fd547b545e5e366c7ed284a33cb (diff) | |
download | busybox-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.c | 3 |
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 */ |