tar: Fix remove(3)-error-message

This commit is contained in:
FRIGN 2015-04-23 20:46:41 +02:00 committed by sin
parent fbd39af1fa
commit 5a52154a47

2
tar.c
View File

@ -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));