diff options
author | Jim Meyering <jim@meyering.net> | 2004-10-18 08:19:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-10-18 08:19:26 +0000 |
commit | 385f1ab2a0b6c57cf087553a69f5f0c0d9f42fb2 (patch) | |
tree | 7c45f471470b4736b4a3e30f8b3a1e929b987752 /src/pathchk.c | |
parent | ccbf47a8e19cb6c413af00335b11290ae04f4dc5 (diff) | |
download | coreutils-385f1ab2a0b6c57cf087553a69f5f0c0d9f42fb2.tar.xz |
(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.
Diffstat (limited to 'src/pathchk.c')
-rw-r--r-- | src/pathchk.c | 4 |
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); |