📄 changelog
字号:
2002-03-09 Jim Meyering <meyering@lucent.com> * Makefile.am (EXTRA_DIST): Remove config/config.rpath, now that automake knows about it.2002-03-08 Jim Meyering <meyering@lucent.com> Don't allow a malicious user to trick another user's rm process into removing unintended files. In one scenario, if root is removing a hierarchy that is writable by the malicious user, that user may trick root into removing all of `/'. Reported by Wojciech Purczynski. * src/remove.c (remove_dir): After chdir `..', call lstat to get the dev/inode of "." and fail if they aren't the same as the old numbers. (remove_cwd_entries): New parameter, `cwd_dev_ino'. (remove_dir): Likewise. (rm): Likewise. Adjust all callers. * src/mv.c (do_move): The first time we resort to copy/remove, call lstat `.' to get the device/inode numbers now required for rm. * src/rm.c (main): Call lstat `.' to get the device/inode numbers now required for rm. * src/remove.h (struct dev_ino): Declare new type. (rm): Add a parameter to the prototype.2002-03-06 Jim Meyering <meyering@lucent.com> * Use automake-1.6. Regenerate dependent files.2002-03-05 Jim Meyering <meyering@lucent.com> * Makefile.am (EXTRA_DIST): Add config/config.rpath.2002-03-04 Jim Meyering <meyering@lucent.com> * Makefile.maint (tgz-size): Also handle a suffix of `K', since the sizes in the output of `du -h' now look like `29K'2002-03-03 Jim Meyering <meyering@lucent.com> * Version 4.1.6.2002-03-03 Paul Eggert <eggert@twinsun.com> Make cp -r equivalent to cp -R. Add a new cp option --copy-contents for people who want to emulate the traditional (and rarely desirable) cp -r behavior. * src/cp.c (COPY_CONTENTS_OPTION): New enum value. (long_opts): Add --copy-contents. (usage): Describe new behavior. Sort options. (main): Implement new behavior. Remove diagnostics for -a and -r; no longer needed. * src/copy.c (copy_internal): Remove -r warning; no longer needed. * NEWS: Document this.2002-03-02 Jim Meyering <meyering@lucent.com> * src/copy.c (copy_internal): For each symlink copied by cp -r, issue a warning that `cp -r' is not portable. * src/cp.c (main): Revert change of 2001-12-29. With this change, cp -r once again preserves symlinks. (usage): Document the original (now-restored) behavior. * tests/cp/r-vs-symlink: Reflect changed semantics of cp's -r option. * src/cp.c (main): Warn when -r is specified before --archive (-a). * src/cp.c (main): Fail when -r is specified after --archive (-a) on the command line. * src/copy.c (copy_reg): Detect abuse of a race condition whereby an unprivileged user could gain read access to otherwise- inaccessible files when root uses cp or mv to copy a hierarchy belonging to that user.2002-02-27 Paul Eggert <eggert@twinsun.com> * src/ls.c (decode_switches, usage): Add --time-style=+FORMAT. * doc/coreutils.texi (Formatting file timestamps): Document it.2002-02-25 Paul Eggert <eggert@twinsun.com> Add ACL support to 'ls' for HP-UX and Unixware, and try to establish a framework for adding it for other hosts. This builds on a suggestion of Andreas Gruenbacher. * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c. * lib/acl.h, lib/acl.c, m4/acl.m4: New files. * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL. Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now. * src/ls.c: Include "acl.h" rather than <sys/acl.h>. (USE_ACL): Remove; replaced by HAVE_ACL everywhere. (gobble_file): Use file_has_acl rather than doing it ourselves.2002-02-20 Jim Meyering <meyering@lucent.com> * src/touch.c: Include posixver.h. (usage): Document only the intersection of the old and new behaviors, to encourage portability. (main): Use `posix2_version ()' in place of POSIX2_VERSION.2002-02-17 Jim Meyering <meyering@lucent.com> * ABOUT-NLS, intl/*: Update to Gettext 0.11. * INSTALL: Update to Autoconf 2.52h. * src/Makefile.am (datadir): Use `share' in place of @DATADIRNAME@, per Gettext-0.11. (LDADD): Use @LIBINTL@ instead of @INTLLIBS@, per Gettext-0.11. * configure.ac (AC_CONFIG_AUX_DIR): New macro invocation. (ALL_LINGUAS): Remove: now in po/LINGUAS as per Gettext 0.11. * config: New subdirectory, containing the following files from .: config.guess, config.sub, depcomp, missing, install-sh, mkinstalldirs. Move the following files here from doc: texinfo.tex, mdate-sh.2002-02-16 Jim Meyering <meyering@lucent.com> * tests/ls/infloop: Use `head -n 7', not `head -7'. * tests/rm/hash: Likewise.2002-02-10 Jim Meyering <meyering@lucent.com> * configure.in (ALL_LINGUAS): Add Hungarian (hu).2002-02-02 Jim Meyering <meyering@lucent.com> * src/shred.c: (VERBOSE_UPDATE): Update every 5 seconds, not every 10. (wipename): Quote file names only when necessary. (main): Copy quoted string into malloc'd storage so it doesn't get clobbered when using -u and --verbose. Minor clean-up. * src/shred.c: Use `NULL' rather than `(time_t *) 0'. (dopass): Use STREQ in place of strcmp. Add parentheses around use of nested ternary operator.2002-01-15 Paul Eggert <eggert@twinsun.com> * src/shred.c (VERBOSE_UPDATE): Now counts seconds, not bytes. (dopass): If verbose, output a line every VERBOSE_UPDATE seconds, and suppress duplicate output lines. Output a percentage as well as a count of bytes. Also, fix comment/code typo regarding how many bytes have been written; this typo was harmless before, but is no longer harmless with the above change in effect.2002-02-02 Jim Meyering <meyering@lucent.com> * src/remove.c (rm): Add a comment.2002-01-28 Jim Meyering <meyering@lucent.com> * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5d. * configure.ac (AM_INIT_AUTOMAKE): Use zero-arg form of this macro.2002-01-21 Jim Meyering <meyering@lucent.com> * po/POTFILES.in: Add lib/xmemcoll.c * src/chown-core.c: Don't include "xalloc.h", as system.h already does that via sys2.h. * src/ls.c: Likewise. * src/shred.c: Likewise.2002-01-20 Paul Eggert <eggert@twinsun.com> * src/ls.c: Avoid undefined behavior when strcoll fails, by resorting the directory with strcmp instead. Include <setjmp.h>. Include "quote.h". (compare_atime, rev_cmp_atime, compare_ctime, rev_cmp_ctime, compare_mtime, rev_cmp_mtime, compare_size, rev_comp_size, compare_name, rev_cmp_name, compare_extension, rev_cmp_extension, compare_version, rev_compare_version): Move before use, so that we can remove the forward declaration. Reimplement in terms of the new functions described below, using xstrcoll instead of strcoll. (failed_strcoll): New var. (xstrcoll): New function. (V): New type. (cmp_ctime, compstr_ctime, rev_str_ctime): New functions. (cmp_mtime, compstr_mtime, rev_str_mtime): Likewise. (cmp_atime, compstr_atime, rev_str_atime): Likewise. (cmp_size, compstr_size, rev_str_size): Likewise. (cmp_version): Likewise. (cmp_name, compstr_name, rev_str_name): Likewise. (cmp_extension, compstr_extension, rev_str_extension): Likewise. (sort_files): Use prototype for internal function var. If the strcoll-based comparison fails, fall back on a strcmp-based one.2002-01-19 Jim Meyering <meyering@lucent.com> Ensure that the two version numbers in configure.ac remain in sync. * Makefile.maint (local-check): Depend on ac-check. (ac_p_pkg, AC_INIT_PKG): Define. (ac_p_ver, AC_INIT_VER): Define. (ac-check): New rule.2002-01-19 Jim Meyering <meyering@lucent.com> * configure.ac: Remove code that set LIBOBJS in support of ansi2knr. The latest version of autoconf objected to it, and besides, I don't care too much about K&R support these days.2002-01-14 Paul Eggert <eggert@twinsun.com> * src/touch.c (main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.2002-01-14 Paul Eggert <eggert@twinsun.com> Add support for POSIX 1003.1-2001, which requires removal for support of the obsolete `touch [-acm] MMDDhhmm[YY] FILE...' syntax. * NEWS: Document this. * src/touch.c (usage, main): Implement this.2002-01-12 Jim Meyering <meyering@lucent.com> Avoid giving a misleading diagnostic in some unusual cases. Instead, give one that makes sense. * src/copy.c (copy_reg): Don't treat errno==ENOENT as a special case. (same_file_ok): Detect a case that would have lead to the errno==ENOENT condition above (and a misleading diagnostic), and return 0 so we give a diagnostic about the source and destination being the same file. (copy_internal): Use an explicit test for errno==EXDEV to detect that rename has failed because source and destination are on different devices. This reverts part of a change from 1997-12-13, and is to avoid letting a race condition evoke a bogus diagnostic. Note that while POSIX has encouraged the errno==EXDEV test for years, it was inadequate back in 1997. I'm hoping that many more systems have conforming support these days. Reported by Michael Gaughen <mgaughen@polyserve.com> * src/shred.c (usage): Also mention Ext3. Suggestion from G鰎an Uddeborg.2002-01-06 Bruno Haible <bruno@clisp.org> * src/ls.c (long_time_format): Extend translator comments.2002-01-05 Jim Meyering <meyering@lucent.com> * Version 4.1.5.2001-12-29 Jim Meyering <meyering@lucent.com> * src/cp.c (main): With -r, always dereference symlinks. Reported by Christian Harkort. Patch by Chris J. Bednar. * tests/cp/r-vs-symlink: New file to test for the above fix. * tests/cp/Makefile.am (TESTS): Add r-vs-symlink.2001-12-21 Jim Meyering <meyering@lucent.com> * src/shred.c [!HAVE_CONFIG_H]: Remove cpp block that duplicated code in lib/ in order to facilitate compiling this program without config.h.2001-12-19 Paul Eggert <eggert@twinsun.com> * src/shred.c: Add FSF copyright notice.2001-12-18 Paul Eggert <eggert@twinsun.com> Use notation compatible with SI and with IEC 60027-2. For example, --block-size=1MB now means --block-size=1000000, whereas --block-size=1MiB now means --block-size=1048576. A trailing `B' now means decimal, not binary; this is a silent change. -H or --si now outputs the trailing 'B', for consistency with this. Programs now output trailing 'K' (not 'k') to mean 1024. New df, du short option -B is short for --block-size. You can omit an integer `1' before a block size suffix, e.g. `df -BG' is equivalent to `df -B 1G' and to `df --block-size=1G'. * NEWS, doc/coreutils.texi: Document this. Remove documentation for obsolescent constructs MD, --kilobytes, -m or --megabytes. * src/dd.c (usage, parse_integer): Prefer K to k for 1024. * src/shred.c (usage, main): Likewise. * src/shred.c (xstrtoumax): If there is no number but there is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary. Accept 'K' as well as 'k'. * src/dd.c (usage): MD -> MB for decimal. * src/df.c (BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'. (long_options, usage, main): Add -B. (usage): Deprecate --kilobytes, -m, --megabytes. Document size suffixes. * src/du.c: Likewise. * src/ls.c (usage): Deprecate --kilobytes. Document size suffixes. * src/df.c (print_header, show_dev): Enlarge column widths for trailing "B".2001-12-17 Jim Meyering <meyering@lucent.com> * Makefile.maint (real_dir): Remove unused variable. (url_dir_list): Don't set define it here, but... * Makefile.cfg (url_dir_list): ...define it here instead. (hosts, a_host, b_host): Remove now-unused variables. (alpha_subdir, a_url_dir, b_url_dir): Remove now-unused variables.2001-12-15 Jim Meyering <meyering@lucent.com> * Version 4.1.4. * tests/touch/fail-diag: Also accept SunOS4's `Not owner' diagnostic. Reported by Volker Borchert. * tests/help-version: Fail also if ./$i --version fails. Run each --help and --version test with a few different settings of LC_MESSAGES. Prompted by a report from Nelson Beebe.2001-12-11 Jim Meyering <meyering@lucent.com> Include the word `fail' in some diagnostics to make it clearer that they indicate a failure. * src/chgrp.c (main): s/getting attributes/failed to get attributes/. * src/chmod.c (change_file_mode, main): Likewise. * src/chown-core.c (change_file_owner): Likewise. * src/chown.c (main): Likewise. * src/cp.c (re_protect): Likewise. * src/touch.c (touch, main):Likewise. Suggestion from Karl Berry.2001-12-10 Jim Meyering <meyering@lucent.com> * src/dd.c (buggy_lseek_support): Remove function. (skip_via_lseek) [__linux__]: New function. (skip): Use skip_via_lseek, not buggy_lseek_support. Based on an outline from Paul Eggert.2001-12-09 Jim Meyering <meyering@lucent.com> * configure.in (ALL_LINGUAS): Add Estonian (et).2001-12-08 Jim Meyering <meyering@lucent.com> * Makefile.cfg (wget_files): Remove ansi2knr.c, since it's no longer available at that location.2001-12-04 Jim Meyering <meyering@lucent.com> * tests/chgrp/basic: Don't use diff's -u option. It's not portable. Besides, with GNU diff one can use the DIFF_OPTIONS envvar. * tests/ls/no-arg: Likewise. * tests/ls/recursive: Likewise. * tests/ls/rt-1: Likewise.2001-12-02 Jim Meyering <meyering@lucent.com>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -