ref: 02179049f253327e317bf4ff78597ce4723d7986
parent: d59f5ffaaee5f2e79b8dbf204564d78478d24c4c
author: Quentin Rameau <quinq@fifth.space>
date: Thu Jan 10 12:17:27 EST 2019
[ar] Fix a few error strings
--- a/src/cmd/ar.c
+++ b/src/cmd/ar.c
@@ -120,9 +120,9 @@
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 @@
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);
}