sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 5a52154a47ab16ef229dd402365bb2140a44c633
parent fbd39af1fae5faf3f05d82925a446d2a0c204aa1
Author: FRIGN <dev@frign.de>
Date:   Thu, 23 Apr 2015 20:46:41 +0200

tar: Fix remove(3)-error-message

Diffstat:
Mtar.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tar.c b/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));