]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
pathchk cleanups, gnulib merge
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Oct 2004 06:33:20 +0000 (06:33 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Oct 2004 06:33:20 +0000 (06:33 +0000)
ChangeLog
doc/ChangeLog
lib/ChangeLog
m4/ChangeLog

index 800d8494b0b2bc7bc99f91fc5303a75404c5c166..968f9483fd56943e1b59a04713670de03fa7a683 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,30 @@
+2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * AUTHORS: Add self to pathchk.
+       * src/pathchk.c (AUTHORS): Add self.
+       Change "path" to "file name" whenever possible.
+       Remove usage comment, as it was a duplication of the code or doc.
+       Include <wchar.h> if available.
+       (mbrlen, mbstate_t) [! (HAVE_MBRLEN && HAVE_MBSTATE_T)]: Define.
+       (NEED_PATHCONF_WRAPPER, PATH_MAX, PATH_MAX_FOR, NAME_MAX,
+       pathconf_wrapper, portable_chars, dir_ok): Remove.
+       (NAME_MAX_MINIMUM, PATH_MAX_MINIMUM): New macros.
+       (pathconf, _PC_NAME_MAX, _PC_PATH_MAX): Define if nonexistent.
+       (portable_chars_only): New arg FILELEN.
+       Don't assume ASCII; we might be on an EBCDIC host.
+       Don't assume unibyte locale in diagnostic.
+       (component_start, component_len): New functions.
+       (validate_file_name): Renamed from validate_path.  All uses changed.
+       Pretty much a complete rewrite.
+       Don't make copy of file arg.  Always append trailing slash to
+       pathconf arg, just in case it's a symlink (this is pure paranoia;
+       we don't know of any hosts where the trailing slash is required).
+       Use size_t instead of long int when possible.
+       Avoid need to call pathconf in most practical cases.
+       Don't use euidaccess several times to test searchability;
+       just use lstat once.  Reword diagnostic to put the (often very long)
+       file names last.
+       
 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 5.3.0.
index be2897825daf9906fb0e7b3f3567006ea718db8f..4b44c83bef8d35d0d655ed3942895cae815dab14 100644 (file)
@@ -1,3 +1,12 @@
+2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * coreutils.texi (pathchk invocation): Overall lengths are
+       OS limits, not file system limits.  Component length checks
+       apply to all components, not merely to existing ones.  Say
+       that nonexistent names are not errors.  For -p, omit all
+       checks based on the underlying file system, not merely length
+       checks.  Explain what the portabile file name character set is.
+
 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
 
        * coreutils.texi (printf invocation): Mention ISO/IEC 10646 as
index 91769e935e7203c524bfea74ac92fc3b2a03d1e5..e0b9b8e5eec1f06bb043fb7b09e35f6601c89c6d 100644 (file)
@@ -1,3 +1,11 @@
+2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Sync from gnulib.
+       * diacrit.c, diacrit.h: Add copyright notice.
+       * getpass.c (fflush_unlocked, flockfile, funlockfile)
+       (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
+       to real functions.
+
 2004-10-13  Jim Meyering  <jim@meyering.net>
 
        * fts.c (fts_read): When about to fail (by returning NULL) due
index da71b55deca09069665fb1f9a982025c0d6c6a45..de1c4e62b703c96ec86cc55aa748ea8a2a23b25b 100644 (file)
@@ -1,3 +1,12 @@
+2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * jm-macros.m4 (gl_MACROS): Check for mbrlen, for pathchk.
+       (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
+
+       Sync from gnulib.
+       * getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
+       implementation of getopt_long.
+
 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        Sync from gnulib.