aboutsummaryrefslogtreecommitdiffstats
path: root/src/pathchk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathchk.c')
-rw-r--r--src/pathchk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pathchk.c b/src/pathchk.c
index 3d6cc5628..f9c2d2cc3 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -240,7 +240,9 @@ validate_file_name (char *file, bool portability)
size = pathconf (dir, _PC_PATH_MAX);
if (size < 0 && errno != 0)
{
- error (0, errno, dir);
+ error (0, errno,
+ _("%s: unable to determine maximum file name length"),
+ dir);
return false;
}
maxsize = MIN (size, SIZE_MAX);