[hackers] [sbase] tar: Fix remove(3)-error-message || FRIGN

From: <git_AT_suckless.org>
Date: Fri, 24 Apr 2015 11:09:33 +0200 (CEST)

commit 5a52154a47ab16ef229dd402365bb2140a44c633
Author: FRIGN <dev_AT_frign.de>
Date: Thu Apr 23 20:46:41 2015 +0200

    tar: Fix remove(3)-error-message

diff --git a/tar.c b/tar.c
index 1ddb923..b1f3b27 100644
--- a/tar.c
+++ b/tar.c
_AT_@ -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));
Received on Fri Apr 24 2015 - 11:09:33 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 24 2015 - 11:12:39 CEST