commit | ae528208910cdfa1d71ad82de9f65b8c32b23397 | [log] [tgz] |
---|---|---|
author | Eivind Uggedal <eivind@uggedal.com> | Mon Feb 15 14:00:00 2016 +0000 |
committer | sin <sin@2f30.org> | Mon Feb 15 14:27:10 2016 +0000 |
tree | 803baa86bd07626ba00743c2a8463e367fb88acd | |
parent | e13f571d119cdd6fedef3f748a264bb143cecc70 [diff] |
tar: make remove(3) non-fatal when extracting Handles special cases like: .
diff --git a/tar.c b/tar.c index 10b2024..71719b0 100644 --- a/tar.c +++ b/tar.c
@@ -259,7 +259,7 @@ if (!mflag && ((mtime = strtol(h->mtime, &p, 8)) < 0 || *p != '\0')) eprintf("strtol %s: invalid number\n", h->mtime); if (remove(fname) < 0 && errno != ENOENT) - eprintf("remove %s:", fname); + weprintf("remove %s:", fname); tmp = estrdup(fname); mkdirp(dirname(tmp));