tar: Fix remove(3)-error-message
This commit is contained in:
parent
fbd39af1fa
commit
5a52154a47
2
tar.c
2
tar.c
|
@ -232,7 +232,7 @@ unarchive(char *fname, ssize_t l, char b[BLKSIZ])
|
|||
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("unlink %s:", fname);
|
||||
eprintf("remove %s:", fname);
|
||||
|
||||
tmp = estrdup(fname);
|
||||
mkdirp(dirname(tmp));
|
||||
|
|
Loading…
Reference in New Issue
Block a user