Nuke some fprintf() calls and replace with weprintf()

This commit is contained in:
sin
2014-11-17 16:27:12 +00:00
parent af8e38f5fa
commit 4dc2b783b8
2 changed files with 6 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ static void
chgrp(const char *path)
{
if (chown(path, st.st_uid, gid) == -1) {
fprintf(stderr, "chgrp: '%s': %s\n", path, strerror(errno));
weprintf("chown %s:", path);
failures++;
}
if (rflag)
@@ -58,8 +58,7 @@ main(int argc, char *argv[])
while (*++argv) {
if (stat(*argv, &st) == -1) {
fprintf(stderr, "stat %s: %s\n", *argv,
strerror(errno));
weprintf("stat %s:", *argv);
failures++;
continue;
}