diff --git a/usr.bin/pathchk/pathchk.c b/usr.bin/pathchk/pathchk.c index 7f11e44b48c2..a0ef92a41f71 100644 --- a/usr.bin/pathchk/pathchk.c +++ b/usr.bin/pathchk/pathchk.c @@ -124,7 +124,8 @@ check(const char *path) } if (!pflag && stat(pathd, &sb) == -1 && errno != ENOENT) { - warn("%s", pathd); + warn("%s: %.*s", path, (int)(strlen(pathd) - + complen - 1), pathd); goto bad; }