diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-05 21:25:15 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-05 21:25:15 +0000 |
commit | 1bb552b1d9da749050274e0a9cb10b672db22d77 (patch) | |
tree | a638c7bbef95bd2c9d72c2e16a5cf4f7b6298458 /archival/bbunzip.c | |
parent | 9020d850bf2b0fd547b545e5e366c7ed284a33cb (diff) |
libbb: add xunlink()
patch: do not try to delete same file twice
Diffstat (limited to 'archival/bbunzip.c')
-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 e16e6b083..3c3cc2886 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 */ |