From 385f1ab2a0b6c57cf087553a69f5f0c0d9f42fb2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 18 Oct 2004 08:19:26 +0000 Subject: [PATCH] (validate_file_name): Give a more descriptive diagnostic when pathconf fails. This also avoids an unwarranted warning from gcc-3.3.5 about a format not being a string literal. --- src/pathchk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.34.1