commit 02179049f253327e317bf4ff78597ce4723d7986
parent d59f5ffaaee5f2e79b8dbf204564d78478d24c4c
Author: Quentin Rameau <quinq@fifth.space>
Date: Thu, 10 Jan 2019 17:17:27 +0100
[ar] Fix a few error strings
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cmd/ar.c b/src/cmd/ar.c
@@ -120,9 +120,9 @@ archive(char *pname, FILE *to, char letter)
if (vflag)
printf("%c - %s\n", letter, fname);
if (strlen(fname) > 16)
- fprintf(stderr, "ar:%s: too long name\n", fname);
+ fprintf(stderr, "ar: %s: name too long, truncated\n", fname);
if ((from = fopen(pname, "rb")) == NULL)
- error("opening member '%s':%s\n", pname, errstr());
+ error("opening member '%s': %s", pname, errstr());
if (getstat(pname, &prop) < 0)
error("error getting '%s' attributes", pname);
strftime(mtime, sizeof(mtime), "%s", gmtime(&prop.time));
@@ -139,7 +139,7 @@ archive(char *pname, FILE *to, char letter)
if (n & 1)
putc('\n', to);
if (ferror(from))
- error("reading input '%s':%s", pname, errstr());
+ error("reading input '%s': %s", pname, errstr());
fclose(from);
}