bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils-4.5.5 released


From: Jim Meyering
Subject: coreutils-4.5.5 released
Date: Mon, 03 Feb 2003 09:02:46 +0100

As usual, this is a mixed bag.
Mainly bug fixes, with a few new features thrown in.
Other than bug fixes, this release contains

  readlink: a new program, by Dmitry Levin
  cut: a new feature, by Jan Nieuwenhuizen,
  du: largely rewritten: this is the first step in making du
      work even on hierarchies that are deeper than the current
      recursive implementation can handle: ~30,000 levels.

The new version of du.c uses nftw.  The implementation of nftw comes
From GNU libc, but with a few added extensions.  This version of nftw
uses glibc's tsearch.c/search.h, so those too are included, also with
some changes to make them more portable.  So a few portability problems
may well remain.

Jim

------------

  ftp://alpha.gnu.org/gnu/coreutils/coreutils-4.5.5.tar.gz   (5.6MB)
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-4.5.5.tar.bz2  (3.7MB)
  http://fetish.sf.net/coreutils-4.5.5.tar.gz   (5.6MB)
  http://fetish.sf.net/coreutils-4.5.5.tar.bz2  (3.7MB)

And here are xdelta-style diffs:
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-4.5.4-4.5.5.xdelta   (596KB)
  http://fetish.sf.net/coreutils-4.5.4-4.5.5.xdelta   (596KB)

Here are GPG detached signatures:
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-4.5.5.tar.gz.sig
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-4.5.5.tar.bz2.sig
  http://fetish.sf.net/coreutils-4.5.5.tar.gz.sig
  http://fetish.sf.net/coreutils-4.5.5.tar.bz2.sig

Here are the MD5 and SHA1 signatures:

2d8d8ae96cad7c979d3ff6408feddd3b  coreutils-4.5.5.tar.gz
bec9d52728767272540d99e3028718c0  coreutils-4.5.5.tar.bz2
7e04094006a9d1ed5b020e4969b270cf  coreutils-4.5.4-4.5.5.xdelta
980f57a9625599c98475ab4fc50dda8bce26f562  coreutils-4.5.5.tar.gz
45388dfcd7c294801c01f8f23c7c05932c626a74  coreutils-4.5.5.tar.bz2
17d9df36a0231ad5ec903e79c85296a0c37608d7  coreutils-4.5.4-4.5.5.xdelta
NEWS:
* ls --dired produces correct byte offset for file names containing
  nonprintable characters in a multibyte locale
* du has been rewritten to use a variant of GNU libc's ftw.c
* du now counts the space associated with a directory's directory entry,
  even if it cannot list or chdir into that subdirectory.
* du -S now includes the st_size of each entry corresponding to a subdirectory
* rm on FreeBSD can once again remove directories from NFS-mounted file systems
* ls has a new option --dereference-command-line-symlink-to-dir, which
  corresponds to the new default behavior when none of -d, -l -F, -H, -L
  has been specified.
* ls dangling-symlink now prints `dangling-symlink'.
  Before, it would fail with `no such file or directory'.
* ls -s symlink-to-non-dir and ls -i symlink-to-non-dir now print
  attributes of `symlink', rather than attributes of their referents.
* Fix a bug introduced in 4.5.4 that made it so that ls --color would no
  longer highlight the names of files with the execute bit set when not
  specified on the command line.
* shred's --zero (-z) option no longer gobbles up any following argument.
  Before, `shred --zero file' would produce `shred: missing file argument',
  and worse, `shred --zero f1 f2 ...' would appear to work, but would leave
  the first file untouched.
* readlink: new program
* cut: new feature: when used to select ranges of byte offsets (as opposed
  to ranges of fields) and when --output-delimiter=STRING is specified,
  output STRING between ranges of selected bytes.
* rm -r can no longer be tricked into mistakenly reporting a cycle.
* when rm detects a directory cycle, it no longer aborts the entire command,
  but rather merely stops processing the affected command line argument.


ChangeLog entries:

**********************************************************************
config/ChangeLog
**********************************************************************
2003-01-12  Jim Meyering  <address@hidden>

        Lots of syntactic clean-up, mostly from Karl Berry.
        * install-sh: Use consistent indentation, two spaces per level.
        (scriptversion): New variable.
        Change initializations like `variable=""' to `variable='.
        (usage): New variable.
        Use `test', not `['.
        Use `test -z "$var"', not `[ x"$var" = x ]'.
        Use `test -n "$var"', not `[ x"$var" != x ]'.
        Alphabetize case entries.
        Accept --help and --version options.
        Remove unnecessary `else :' clauses.
        Add a `Local variables' eval block to help emacs users update
        the time-stamp variable added above.

2002-12-20  Jim Meyering  <address@hidden>

        * install-sh: Set the execute bit on this file.
        Reported by Vin Shelton.


**********************************************************************
doc/ChangeLog
**********************************************************************
2003-01-25  Jim Meyering  <address@hidden>

        * coreutils.texi (cut invocation): Describe new functionality of
        --output-delimiter=STR.

2003-01-24  Jim Meyering  <address@hidden>

        * coreutils.texi (The cut command): Give an example of using cut -c
        with an output delimiter.  From Jan Nieuwenhuizen.

        * coreutils.texi (The cut command): Extend the new example a little.
        (Formatting file timestamps): Fix typo: s/%M:S/%M:%S/.

        * coreutils.texi: Change each use of `Core-utils' to `Coreutils'.
        From Karl Berry.

2003-01-19  Jim Meyering  <address@hidden>

        * coreutils.texi (Which files are listed): Document new option:
        --dereference-command-line-symlink-to-dir.

2003-01-15  Paul Eggert  <address@hidden>

        Change ls -H back to the way it was yesterday, since this is
        compatible with FreeBSD and the POSIX spec is confusing
        and somewhat contradictory.

        * doc/coreutils.texi (Which files are listed, General output
        formatting): Undo last change.

2003-01-15  Jim Meyering  <address@hidden>

        * coreutils.texi (General output formatting): Reflect option name 
change:
        s/--dereference-command-line/--dereference-command-line-symlink-to-dir/.
        Say that this option changes how ls treats only symlinks to directories
        specified on the command line.

2002-08-27  Dmitry V. Levin  <address@hidden>

        * coreutils.texi: Document readlink.

2002-12-14  Jim Meyering  <address@hidden>

        * coreutils.texi (mknod invocation): Specify how major and minor mode
        numbers are interpreted.  Report forwarded by Kristin E Thomas.


**********************************************************************
lib/ChangeLog
**********************************************************************
2003-02-02  Jim Meyering  <address@hidden>

        * ftw.c (lstat) [LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.

2003-01-25  Jim Meyering  <address@hidden>

        * ftw.c (ISSLASH, FILESYSTEM_PREFIX_LEN) [_LIBC]: Define.
        (base_name): New function.
        (ftw_startup): Don't strip trailing slashes.
        Use base_name to find the offset of the basename.

2003-01-25  Jim Meyering  <address@hidden>

        * ftw.c (object_compare): Compare inode numbers before device numbers.
        The former is much more likely to differ for any two given file objects.

2003-01-23  Jim Meyering  <address@hidden>

        * tsearch.c [HAVE_CONFIG_H]: Include <config.h>.
        Add autoconf-recommended block of alloca-related code.
        Cast each use of alloca to the required type, (node**).

        * ftw.c: Add autoconf-recommended block of alloca-related code.
        [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.

2003-01-22  Jim Meyering  <address@hidden>

        * ftw.c (find_object): Don't use c99-style struct initializer.

        * ftw_.h: Change all uses of __const to const.
        * search_.h: Likewise.

        * Makefile.am (CLEANFILES): Add generated files: ftw.h search.h.

        * ftw.c (process_entry): Handle FTW_DCHP.
        (ftw_dir): Handle FTW_DCH.

        * ftw_.h [!_LIBC && !__USE_XOPEN_EXTENDED]: Define __USE_XOPEN_EXTENDED
        and FTW_H_STANDALONE.
        [anon enum] (FTW_DCH, FTW_DCHP): New members.
        (FTW_DCH, FTW_DCHP): Define.

        * ftw.c: Include autoconf-recommended block of dirent/NAMELEN
        related definitions and includes.  Use NAMELEN throughout,
        rather than _D_EXACT_NAMLEN.
        [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
        (stpcpy): Declare, if necessary.
        (mempcpy): Define, if necessary.
        [!_LIBC] (__stpcpy, __mempcpy): Define.
        [!_LIBC] (LXSTAT, XSTAT): Define.

2003-01-21  Jim Meyering  <address@hidden>

        * tsearch.c: New file, from GNU libc.
        [! weak_alias]: Define __-prefixed names to publicized ones.
        [! defined _LIBC] (weak_alias, internal_function): Define-away.
        [defined weak_alias]: Guard each use of weak_alias.

2003-01-20  Jim Meyering  <address@hidden>

        * canonicalize.c: Include "path-concat.h".

        * search_.h: New file, from GNU libc.

        * Makefile.am (libfetish_a_SOURCES): Use ftw_.h here, too.
        (libfetish_a_SOURCES): Add search_.h.
        * ftw_.h: Rename from ftw.h.

        * obstack.h (obstack_object_size): Declare temporary, __o, to be const.
        (obstack_room): Likewise.
        (obstack_empty_p): Likewise.

        Merge in changes from GNU libc
        * error.c: Eliminate many `#ifdef USE_IN_LIBIO' conditionals.

2003-01-19  Ulrich Drepper  <address@hidden>

        From GNU libc.
        * strftime.c (my_strftime): Handle very large width
        specifications for numeric values correctly.  Improve checks for
        overflow.

2003-01-19  Jim Meyering  <address@hidden>

        * strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical definitions.
        (nl_get_alt_digit) [! defined my_strftime]: Define.
        (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
        _nl_get_alt_digit and _nl_get_walt_digit.

        * strftime.c (my_strftime): Merge in locale-related changes from libc.
        These changes have no effect outside of _LIBC.

2003-01-14  Jim Meyering  <address@hidden>

        * same.c (same_name): Declare *_basename locals to be `const'.
        Consolidate declarations and initializations of *_base* locals.

2003-01-11  Bruno Haible  <address@hidden>

        * same.c (same_name): Reorder tests so as to avoid calling stat()
        when a string comparison is sufficient.

2003-01-11  Bruno Haible  <address@hidden>

        * readtokens.c (readtoken): Cast character to 'unsigned char', not
        'unsigned int'.

2003-01-14  Jim Meyering  <address@hidden>

        * ftw.c: Merge in Ulrich's and my changes from libc.

2003-01-12  Jim Meyering  <address@hidden>

        * ftw.c (ftw_startup): Rename local-shadowing local to pacify gcc.
        Also work on systems that have `struct direct', using autoconf's
        AC_HEADER_DIRENT.
        Tweak comments.

        * ftw.h, ftw.c: New files, from glibc/io.

        * Makefile.am (libfetish_a_SOURCES): Add ftw.h.

2003-01-11  Jim Meyering  <address@hidden>

        * makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.

        * canonicalize.c: Don't test HAVE_ERRNO_H.  It's not necessary.
        Don't test HAVE_STDDEF_H.  It's not necessary.
        Use definition of PTR_INT_TYPE from obstack.h.

2002-12-01  Dmitry V. Levin  <address@hidden>

        * canonicalize.c: New file.
        The readlink-based implementation imported from GNU C Library.
        The resolveip-based implementation imported from src/df.c (show_point).
        * canonicalize.h: New file.
        * Makefile.am (libfetish_a_SOURCES): Add canonicalize.h.

2003-01-10  Jim Meyering  <address@hidden>

        * save-cwd.h: Remove uses of PARAMS.

2002-11-30  Dmitry V. Levin  <address@hidden>

        * xgetcwd.h: New file.
        * Makefile.am (libfetish_a_SOURCES): Add xgetcwd.h.
        * save-cwd.c: Include "xgetcwd.h".
        * xgetcwd.c: Likewise.

2002-11-30  Dmitry V. Levin  <address@hidden>

        * getgroups.c: Don't declare functions declared by xalloc.h.
        Include "xalloc.h" instead.
        * group-member.c: Likewise.
        * idcache.c: Likewise.
        * readutmp.c: Likewise.

2003-01-08  Jim Meyering  <address@hidden>

        * full-write.c: Undefine and define-away `const' after inclusion
        of errno.h, not before.  Suggestion from Bruno Haible.

2003-01-06  Jim Meyering  <address@hidden>

        * full-write.c: Rework so that it may serve to define full_read, too.
        * full-read.c: Simply #define FULL_READ and include full-write.c.

        * Makefile.am (libfetish_a_SOURCES): Add full-read.c and full-read.h.
        * full-read.c, full-read.h: New files.

        Update from gnulib.

        2002-12-10  Paul Eggert  <address@hidden>
        Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
        * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
        Choose values that are less likely to collide with system fnmatch
        options.
        * exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
        defined (e.g., a pure POSIX system).
        (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
        instead of FNM_FILE_NAME, for compatibility with pure POSIX systems.

        Update from gnulib.

        * utime.c (utime_null): Use SAFE_READ_ERROR.
        (utime_null): No need to call ftruncate if the file was nonempty.
        * getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
        * canon-host.c (strdup): Remove unused declaration.
        * fsusage.c: Include full_read.h.
        (get_fs_usage): Use full_read instead of safe_read.
        Patches by Bruno Haible.

2003-01-04  Jim Meyering  <address@hidden>

        * version-etc.c: Update copyright date.

2002-12-31  Jim Meyering  <address@hidden>

        * dev-ino.h: New file.
        * cycle-check.c: New file.
        * cycle-check.h: New file.
        * Makefile.am (libfetish_a_SOURCES): Add cycle-check.c, cycle-check.h,
        and dev-ino.h.

2002-12-21  Jim Meyering  <address@hidden>

        * stime.c: Remove file (for real, this time).

2002-12-15  Jim Meyering  <address@hidden>

        * strftime.h: New file, for declaration of nstrftime.
        * Makefile.am (libfetish_a_SOURCES): Add strftime.h.


**********************************************************************
m4/ChangeLog
**********************************************************************
2003-02-02  Jim Meyering  <address@hidden>

        * onceonly.m4: New file.  From gnulib.

        * regex.m4 (jm_PREREQ_REGEX): New function, from gnulib.
        (jm_INCLUDED_REGEX): Use it.
        * prereq.m4 (jm_PREREQ_REGEX): Remove.

2003-01-31  Jim Meyering  <address@hidden>

        * open-max.m4 (UTILS_SYS_OPEN_MAX): New file/macro.
        * jm-macros.m4 (jm_MACROS): Require UTILS_SYS_OPEN_MAX.

2003-01-29  Jim Meyering  <address@hidden>

        * regex.m4: Detect broken re_search in e.g. glibc-2.2.93.

2003-01-23  Jim Meyering  <address@hidden>

        * dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
        from working on systems without dirfd (at least Irix and OSF1/Tru64).

        Merge in change by Bruno Haible from gnulib.
        * dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP requirements.

2003-01-16  Jim Meyering  <address@hidden>

        * regex.m4: The `regex' struct is both input and output.
        Initialize it before each use.  Patch by Tim Waugh.

2003-01-15  Jim Meyering  <address@hidden>

        * jm-macros.m4: Require AC_FUNC_FTW.

2003-01-12  Jim Meyering  <address@hidden>

        * ftw.m4: New file.

2003-01-11  Jim Meyering  <address@hidden>

        * canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): New file and macro.
        * jm-macros.m4: Require AC_FUNC_CANONICALIZE_FILE_NAME.
        (jm_MACROS): No longer check for resolvepath or canonicalize_file_name.

2002-12-15  Jim Meyering  <address@hidden>

        * jm-glibc-io.m4n: Remove now-unused file.
        * Makefile.am.in (Makefile.am): Remove jm-glibc-io.m4
        and jm-glibc-io.m4n.


**********************************************************************
po/ChangeLog
**********************************************************************
2003-01-11  Jim Meyering  <address@hidden>

        * POTFILES.in: Add src/readlink.c.


**********************************************************************
ChangeLog
**********************************************************************
2003-02-02  Jim Meyering  <address@hidden>

        * Version 4.5.5.

        * man/Makefile.am (check-x-vs-1): Use @PATH_SEPARATOR@, not `:'.

        Ensure that there are no offending uses of `:'.
        * Makefile.maint (makefile_path_separator_check): New rule.
        (local-check): Add it to the list.

2003-02-01  Jim Meyering  <address@hidden>

        * src/du.c (MAX_N_DESCRIPTORS): Define.

        * src/stat.c (G_fail): New global.
        (human_time): Diagnose failed localtime, not failed nstrftime.
        (main): Fail if G_fail is set.

2003-01-31  Richard Dawe  <address@hidden>

        * tests/basename/Makefile.am: Use @PATH_SEPARATOR@ instead of
        hard-coding the path-separator.  Also double-quote the new PATH,
        to avoid problems when the path-separator is a semi-colon or when
        `pwd` contains e.g. a space.
        * tests/chgrp/Makefile.am: Likewise.
        * tests/chmod/Makefile.am: Likewise.
        * tests/chown/Makefile.am: Likewise.
        * tests/cp/Makefile.am: Likewise.
        * tests/dd/Makefile.am: Likewise.
        * tests/dircolors/Makefile.am: Likewise.
        * tests/du/Makefile.am: Likewise.
        * tests/expr/Makefile.am: Likewise.
        * tests/factor/Makefile.am: Likewise.
        * tests/fmt/Makefile.am: Likewise.
        * tests/install/Makefile.am: Likewise.
        * tests/ln/Makefile.am: Likewise.
        * tests/ls/Makefile.am: Likewise.
        * tests/ls-2/Makefile.am: Likewise.
        * tests/md5sum/Makefile.am: Likewise.
        * tests/misc/Makefile.am: Likewise.
        * tests/mkdir/Makefile.am: Likewise.
        * tests/mv/Makefile.am: Likewise.
        * tests/od/Makefile.am: Likewise.
        * tests/rm/Makefile.am: Likewise.
        * tests/rmdir/Makefile.am: Likewise.
        * tests/seq/Makefile.am: Likewise.
        * tests/sha1sum/Makefile.am: Likewise.
        * tests/shred/Makefile.am: Likewise.
        * tests/stty/Makefile.am: Likewise.
        * tests/sum/Makefile.am: Likewise.
        * tests/tail-2/Makefile.am: Likewise.
        * tests/touch/Makefile.am: Likewise.
        * tests/tsort/Makefile.am: Likewise.
        * tests/unexpand/Makefile.am: Likewise.

2003-01-31  Jim Meyering  <address@hidden>

        * src/stat.c: Include "file-type.h"
        (print_human_type): Remove function.
        (human_access): Rename from print_human_access.  Return a string.
        (human_time): Rename from print_human_time.  Return a string.
        (print_stat): Arrange so that field width and an alignment specifier
        are honored for the %A, %F, %x, %y, and %z formats.
        [%F]: Use file_type; this gives slightly different file type strings,
        e.g., `directory' instead of `Directory' and `regular file' or
        `regular empty file' instead of `Regular file'.
        Prompted by a report from Richard Dawe that the uses of
        S_IFSOCK and S_IFIFO in print_human_time were not portable
        to systems using e.g., DJGPP.

2003-01-31  Richard Dawe  <address@hidden>

        * src/stat.c (print_stat): Use S_ISLNK rather than an explicit
        test using S_IFMT and S_IFLNK.  S_IFLNK may not be defined.

2003-01-31  Jim Meyering  <address@hidden>

        * src/du.c (main): Upon processing an invalid option or an invalid
        --exclude-from or --max-depth option argument, don't exit right away,
        in case there are others.  Rather record the failure and exit after
        processing other options.

        * GNUmakefile (TAR_OPTIONS): Set and export, in order to make
        tar archive easier to reproduce.

        Rewrite to perform directory traversal using nftw.

        * src/du.c: Include "dirname.h", "ftw.h", and "quotearg.h".
        (AUTHORS): Add self.
        (opt_one_file_system): Move global into `main'.
        (path, xstat, exit_status): Remove declarations.
        (arg_length, suffix_length): New globals.
        (G_fail): New global, sort of like the old `exit_status'.
        (IS_FTW_DIR_TYPE): Define.
        (print_only_size): New function.
        (process_file): New function.
        (str_init, ensure_space, str_copyc, str_concatc): Remove functions.
        (str_trunc, pop_dir, count_entry): Likewise.
        (du_files): Rewrite to use nftw.

2003-01-30  Jim Meyering  <address@hidden>

        * tests/du/trailing-slash: Ensure that du/ftw follows a command-line
        symlink-to-directory with -L, even without the trailing slash.

2003-01-27  Jim Meyering  <address@hidden>

        * src/Makefile.am (check-misc): Check for st_blocks, too.

        * src/stat.c (print_stat): Use ST_NBLOCKS rather than `->st_blocks'.
        Reported by Richard Dawe.

2003-01-27  Andreas Schwab  <address@hidden>

        * src/ls.c (quote_name): Add fourth parameter, width, into which to
        store the screen columns, and return the number of bytes instead.
        (print_dir): Pass NULL as fourth parameter of quote_name.
        (print_name_with_quoting): Likewise.
        (length_of_file_name_and_frills): Get the width from the fourth
        parameter of quote_name instead of return value.

2003-01-27  Jim Meyering  <address@hidden>

        * src/ls.c (decode_switches): If `dired' is set without
        `format == long_format', then silently reset dired.  This doesn't
        change the behavior of ls (all prior uses of dired were protected
        by `&& format == long_format'), and lets us...
        (DIRED_INDENT): ... remove the `format == long_format' conjunct.
        (PUSH_CURRENT_DIRED_POS): Likewise.
        (main): Likewise.

2003-01-22  Jim Meyering  <address@hidden>

        * tests/du/no-x: New test, for functionality added to lib/ftw.c.
        * tests/du/Makefile.am (TESTS): Add no-x.

2003-01-21  Jim Meyering  <address@hidden>

        * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS
        && HAVE_STRUCT_DIRENT_D_TYPE]: If a file has d_type == DT_UNKNOWN
        it may still be a directory -- or not (e.g., with FreeBSD on an
        NFS-mounted file system), so resort to calling lstat to find out.
        Based on a patch by Michael van Elst.

        * tests/cp/same-file: Don't assume that the file owner username
        length is less than 9 in ls output: instead, omit that field
        altogether.  Reported by, and suggested fix from, Ferdinand.

2003-01-20  Jim Meyering  <address@hidden>

        * tests/date/Test.pm (wide-fmt): New test to demonstrate that
        large format widths no longer cause strftime to infloop.

        * Makefile.maint (mail_gpg_sign_cookie): Remove now-unused definition.

2003-01-19  Jim Meyering  <address@hidden>

        * src/readlink.c: Include "canonicalize.h".

2003-01-18  Jim Meyering  <address@hidden>

        * src/ls.c (Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]:
        New member.
        (enum) [DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION]: New member.
        (long_options): Add option --dereference-command-line-symlink-to-dir.
        (main): Make DEREF_COMMAND_LINE_SYMLINK_TO_DIR be the default,
        rather than DEREF_COMMAND_LINE_ARGUMENTS, when none of the
        -d, -F, -l options is specified.
        (decode_switches): Handle --dereference-command-line-symlink-to-dir.
        (gobble_file): Honor DEREF_COMMAND_LINE_SYMLINK_TO_DIR.
        Change --dereference-command-line (-H) to dereference *all*
        command line arguments, including broken symlinks.

2003-01-15  Paul Eggert  <address@hidden>

        Change ls -H back to the way it was yesterday, since this is
        compatible with FreeBSD and the POSIX spec is confusing
        and somewhat contradictory.

        * src/ls.c (DEREF_COMMAND_LINE_ARGUMENTS): Change name back
        from DEREF_COMMAND_LINE_SYMLINK_TO_DIR, updating all uses.
        (long_options): Change the long option name back.
        (usage): Change the usage back.
        (gobble_file): When -H is specified, dereference a top-level
        arg even if it points to a non-directory.

2003-01-15  Jim Meyering  <address@hidden>

        * src/ls.c (gobble_file): Fall back on using lstat when required:
        when --dereference (-L) is not specified, and
        - when operating on a dangling symlink
        - when operating on command-line-symlink-to-directories
        This fixes numerous problems.  Here are examples:
        - `ls dangling-symlink' would fail with `no such file...'
        Now it prints `dangling-symlink'.
        - `ls -i symlink' would mistakenly print the inode of the referent.
        Now it prints the inode of the symlink.  Likewise for --size (-s).
        Based on a patch from Michael Stone.
        Reported by Deepak Goel as Debian bug #173793.

        Rename ls's --dereference-command-line (-H)
        option to   --dereference-command-line-symlink-to-dir.
        * src/ls.c [enum Dereference_symlink]
        (DEREF_COMMAND_LINE_SYMLINK_TO_DIR): Rename from
        DEREF_COMMAND_LINE_ARGUMENTS.  Update all uses.
        (long_options): Rename the long option.
        (usage): Say that --dereference-... changes how ls treats
        only symlinks to directories specified on the command line.

2003-01-14  Jim Meyering  <address@hidden>

        * tests/ls/dangle: New file/test, for the above fix.
        * tests/ls/inode: Another new file/test, for the above fix.
        * tests/ls/Makefile.am (TESTS): Add dangle and inode.

        * src/ls.c (gobble_file): Fix a bug introduced in 4.5.4 that made it
        so that ls --color would no longer highlight the names of files with
        the execute bit set when not specified on the command line.
        Patch by Michael Stone.  Reported by Stephen Depooter as
        Debian bug 175135.

        * tests/ls-2/tests (color-exe): New test, for the above fix.

2003-01-13  Jim Meyering  <address@hidden>

        * tests/shred/exact: Also test for just fixed bug with --zero.

        * src/shred.c (long_opts): --zero does not require an argument.
        Patch by Michael Stone.  Reported by Roland Turner as Debian bug 172019.

2003-01-12  Jim Meyering  <address@hidden>

        * Makefile.maint (cvs-update): Skip any file with local modifications.

        * src/unexpand.c (usage): Document --first-only and mention that
        --tabs=N (-t) enables --all (-a).  Reported by address@hidden

2002-12-01  Dmitry V. Levin  <address@hidden>

        * src/df.c: Include "canonicalize.h".
        Use canonicalize_file_name unconditionally.

2003-01-09  Jim Meyering  <address@hidden>

        * README: Add readlink.

2002-11-30  Dmitry V. Levin  <address@hidden>

        * src/df.c: Include "xgetcwd.h".
        * src/pwd.c: Likewise.

2002-11-30  Dmitry V. Levin  <address@hidden>

        * src/shred.c: Remove declaration of xstrdup.
        We already get it via xalloc.h which is included via system.h.

2002-08-27  Dmitry V. Levin  <address@hidden>

        New program: readlink.

        * src/Makefile.am (bin_PROGRAMS): Add readlink.
        * src/readlink.c: New file.

        * man/readlink.x: New file.
        * man/Makefile.am (dist_man_MANS): Add readlink.1.
        (readlink.1): New rule.

2003-01-09  Jim Meyering  <address@hidden>

        When selecting ranges of byte offsets (as opposed to ranges of fields)
        and when --output-delimiter=STRING is specified, output STRING between
        ranges of selected bytes.
        * src/cut.c (RANGE_START_SENTINEL): Define.
        (output_delimiter_specified): New global.
        (print_kth): Add parameter.  Adjust all callers.
        (set_fields): Mark each range-start index with RANGE_START_SENTINEL.
        (cut_bytes): When requested, output STRING between ranges of
        selected bytes.
        (main): Make a diagnostic a little clearer.
        Based on a patch from Jan Nieuwenhuizen.

        * tests/cut/Test.pm: New tests for the above.

        * src/cut.c (set_fields): Make code agree with comment:
        Don't merge abutting ranges like 4- and 2-3.  This makes no
        difference currently, but is required to support an upcoming change.

2003-01-07  Jim Meyering  <address@hidden>

        * src/cut.c (set_fields): Fix typo in comment.

        * tests/touch/not-owner: New test, mostly extracted from fail-diag.
        * tests/touch/Makefile.am (TESTS): Add not-owner.
        * tests/touch/fail-diag: Remove the test for non-owner diagnostic.
        Now, this tests only the nonexistent-directory diagnostic.
        Suggestion from Michael Stone.

        * tests/touch/fail-diag: Fix typo: s/ld/ls/.

2003-01-04  Jim Meyering  <address@hidden>

        * src/copy.h: Remove use of PARAMS.
        * src/remove.h: Likewise.
        * src/chown-core.h: Likewise.

        rm could be tricked into mistakenly reporting a cycle.
        * src/remove.c: [cycle_check_state]: New global.
        (remove_cwd_entries): Adapt to new semantics of cycle_check.
        (rm): Call cycle_check_init and cycle_check_free for each file.
        * tests/rm/cycle (rm): New test, for the above fix.
        * tests/rm/Makefile.am (TESTS): Add cycle.

        When rm detects a cycle, don't abort the entire command,
        but rather just the affected command line argument.
        * src/remove.c: Include <setjmp.h>
        (struct dirstack_state) [current_arg_jumpbuf]: New member.
        (remove_cwd_entries): Call longjmp if we detect a cycle.
        (rm): Call setjmp here.

        * src/remove.c (cycle_check, is_power_of_two): Remove functions.
        Instead, include cycle-check.h and use it.

        * src/remove.h (struct dev_ino): Remove declaration.

        * src/remove.c (remove_cwd_entries): Fix typos in comment.

        Don't include trailing /. in diagnostics about directories.
        * src/remove.c (full_filename_): When FILENAME is just `.'
        and there is a nonempty directory-name part, don't append `/.'.
        * tests/rm/unread2: Remove trailing /. from diagnostic.
        * tests/rm/rm2: Likewise.

        * src/remove.c (struct dirstack_state): Define.
        To be used in place of these file-scoped globals ...
        (dir_stack, len_stack, Active_dir): Remove globals.
        (ds_init, ds_free): New functions.
        (full_filename): Define.
        (full_filename_): Rename from full_filename.

        Begin to make AD_* functions more generic.
        * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
        (AD_push): Likewise.
        (AD_INIT_OTHER_MEMBERS): Define.
        (remove_dir): Define the `status' member manually after each
        call to AD_push or AD_push_initial.

        * src/Makefile.am (check-misc): New rule, to ensure that no more
        S_IS* macro definitions sneak into the code.
        (check): Depend on check-misc.

        * src/remove.c [S_ISLNK]: Don't define.  It's already defined in sys2.h.
        * src/du.c (count_entry) [S_ISLNK]: Don't define.
        * src/shred.c [S_ISLNK, S_ISFIFO, S_ISSOCK]: Don't define.

2003-01-03  Jim Meyering  <address@hidden>

        * src/true.c: Add copyright.
        (AUTHORS): I suppose I've written it.

        * src/Makefile.am (false.c): Make the generated file be read-only.

2003-01-04  Jim Meyering  <address@hidden>

        * src/ls.c: Include "dev-ino.h".
        [struct dev_ino]: Remove declaration.

2003-01-02  Jim Meyering  <address@hidden>

        * src/cp.c (do_copy): Tweak diagnostic to be consistent with the one
        from mv: s/missing file arguments/missing file argument/.
        With --target-directory=DIR, cp and mv work with a single file argument.
        Reported by Karl Berry.

        * tests/rm/isatty: Enable this test.

2002-12-31  Jim Meyering  <address@hidden>

        * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
        (AD_push): Likewise.
        (AD_INIT_OTHER_MEMBERS): Define.
        (remove_dir): Define the `status' member manually after each
        call to AD_push or AD_push_initial.

        * src/ls.c [struct dev_ino]: Remove definition.
        Include "dev-ino.h" instead.

2002-12-28  Jim Meyering  <address@hidden>

        * tests/du/Makefile.am (TESTS): Add no-deref.
        * tests/du/no-deref: New script.

2002-12-23  Jim Meyering  <address@hidden>

        * src/remove.c (remove_cwd_entries): Fix typo in comment.

2002-12-21  Jim Meyering  <address@hidden>

        * announce-gen: Generate MML-formatted announcement.
        This makes it a *lot* harder to send stale MD5/SHA1 signatures.

2002-12-20  Jim Meyering  <address@hidden>

        * src/touch.c (touch): Change the wording of a diagnostic so
        that it makes sense both when the file exists and when it doesn't.
        Suggestion from Michael Stone.

2002-12-18  Jim Meyering  <address@hidden>

        * src/stty.c (valid_options): Declare to be static.

2002-12-15  Jim Meyering  <address@hidden>

        * Makefile.cfg: Remove rules related to generating m4/jm-glibc-io.m4.

        * src/chmod.c, src/copy.c, src/copy.h, src/cp-hash.h, src/csplit.c:
        * src/date.c, src/expr.c, src/fmt.c, src/id.c, src/install.c:
        * src/ls.c, src/od.c, src/pathchk.c, src/pr.c, src/remove.c:
        * src/shred.c, src/sort.c, src/stat.c, src/stty.c, src/sum.c:
        * src/tee.c, src/test.c: Remove all uses of `PARAMS'.

        * src/remove.c (PARAMS): Remove definition.
        * src/sys2.h: Likewise.

        * src/ls.c, src/stat.c, src/date.c: Remove declaration of nstrftime.
        Include strftime.h instead.

2002-12-14  Jim Meyering  <address@hidden>

        * Makefile.cfg ($(url_dir_list)): Use .../coreutils, not .../fetish.

        * src/system.h [! HAVE_DECL_MEMRCHR]: Declare memrchr.
        This is necessary at least for Irix6.5 when using c89.
        Reported by Nelson Beebe.

        * tests/misc/Makefile.am (TESTS): Add cat-tty-eof.

        * tests/misc/cat-tty-eof: New test.

        * src/mknod.c (usage): Specify how major and minor mode numbers
        are interpreted.  Report forwarded by Kristin E Thomas.
        * src/mknod.c: Remove now-redundant usage-specifying comment.

Attachment: pgpNxKedLF1qH.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]