?? changelog
字號:
2002-07-20 Jim Meyering <meyering@lucent.com> * Version 4.1.10. * Upgrade to gettext-0.11.3. * Upgrade to autoconf-2.53b.2002-07-19 Jim Meyering <meyering@lucent.com> * src/dircolors.hin: Add .wav. * tests/rm/fail-eperm: Don't expect `ARGV_0=$0 exec ...' to work. It doesn't work with /bin/sh of Solaris5.6. Use an explicit `export ARGV_0' instead. [comparing actual and expected output]: Don't match the entire line, but rather just the `rm: cannot remove `$dir/$f':' part. * tests/rm/dangling-symlink: Use input-tty rather than testing for /dev/stdin. * tests/Makefile.am (EXTRA_DIST): Add input-tty. * tests/input-tty: New file.2002-07-18 Jim Meyering <meyering@lucent.com> * src/dircolors.hin: Add the following to the list of colorizable TERM names: dtterm xterm-color Eterm. New archive suffix: .jar New image suffixes: .jpeg .pbm .pgm .tiff .mpeg .xcf .xwd Audio suffixes: .ogg .mp3 From Michael Stone.2002-07-16 Jim Meyering <meyering@lucent.com> * src/stat.c (print_it): Use memcpy and a little pointer arithmetic, rather than stpncpy.2002-07-14 Jim Meyering <meyering@lucent.com> Under some circumstances, rm would fail due to a lack of permissions, but give a misleading diagnostic like this: rm: cannot chdir from `.' to `foo': Not a directory * src/remove.c (remove_dir): Detect the case in which unlinking a non-directory fails with EPERM, and give an appropriate diagnostic. Reported by Michael Stone.2002-07-13 Jim Meyering <meyering@lucent.com> * tests/rm/fail-eperm: New file/test, for the above. * tests/rm/Makefile.am (TESTS): Add fail-eperm. * src/stat.c (print_it): Use xstrdup, not strdup. Use strspn to avoid an explicit loop. Use fputc rather than printf "\n". * src/stat.c: Include quote.h. (print_stat): Use xreadlink, rather than using readlink directly. Use the quote function rather than hard-coded double quotes. Use error, not perror.2002-07-09 Martin Michlmayr <tbm@cyrius.com> * src/df.c (show_dev): Make the `Use%' column align with its heading, even when -P is used with -h or -H.2002-07-10 Jim Meyering <meyering@lucent.com> * man/du.x: Add a description of --exclude=PATTERN. * src/du.c (usage) [--exclude]: Use PATTERN rather than PAT. From Martin Michlmayr.2002-07-09 Jim Meyering <meyering@lucent.com> I added stat.x, but didn't update the definition of dist_man_MANS. * man/Makefile.am (dist_man_MANS): Add stat.1. (stat.1): Add dependency. Reported by Michael Stone. Ensure that the above never happens again. * man/Makefile.am (check-x-vs-1): New target. (check-local): Depend on check-x-vs-1. * src/mv.c (euidaccess): Remove declaration. It was unused. From Michael Stone. (yesno): Remove declaration. It too was unused.2002-07-08 Paul Eggert <eggert@twinsun.com: * NEWS: df now rounds all quantities up, as per POSIX. This fixes a bug where df would report Size < Used. * doc/coreutils.texi: Likewise. * src/df.c (df_readable): Omit last arg; we always round up now. All callers changed.2002-07-07 Paul Eggert <eggert@twinsun.com> NEWS, doc/coreutils.texi: New ls time style: long-iso, which generates YYYY-MM-DD HH:MM. Any time style can be preceded by "posix-". The default time style is now posix-long-iso instead of posix-iso. * src/ls.c (enum time_style): Remove posix_iso_time_style. Add long_iso_time_style. (time_style_args, time_style_types, decode_switches): Likewise. (decode_switches): If a time style is prefixed by "posix-", ignore it if in the POSIX locale. Default style is now posix-long-iso. (usage): Explain the above.2002-07-06 Jim Meyering <meyering@lucent.com> * tests/Makefile.am (envvar-check): Mark as `.PHONY'. * src/stat.c: Remove everything associated with --secure option.2002-07-04 Jim Meyering <meyering@lucent.com> * src/remove.c (prompt): Fix test for write-protectedness to also check errno == EACCES. Otherwise, `rm dangling-symlink' would mistakenly prompt. Reported by Mike Castle. * tests/rm/Makefile.am (TESTS): Add dangling-symlink. * tests/rm/dangling-symlink: New file/test, for the above fix.2002-07-03 Jim Meyering <meyering@lucent.com> * src/stat.c (usage): Rename --link/-l to --dereference/-L. Describe --secure. Describe --format. (main): Support -L. Deprecate -l.2002-07-02 Jim Meyering <meyering@lucent.com> * src/chgrp.c, src/chmod.c, src/chown.c, src/cp.c, src/dd.c (usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it. * src/df.c, src/dircolors.c, src/du.c, src/install.c: Likewise. * src/link.c, src/ln.c, src/ls.c, src/mkdir.c, src/mkfifo.c: Likewise. * src/mknod.c, src/mv.c, src/rm.c, src/rmdir.c, src/shred.c: Likewise. * src/stat.c, src/sync.c, src/touch.c, src/unlink.c: Likewise.2002-07-01 Jim Meyering <meyering@lucent.com> * tests/touch/fail-diag: Handle yet another different diagnostic. Report from Volker Borchert.2002-06-29 Jim Meyering <meyering@lucent.com> * src/stat.c (print_statfs): Use `fputc ('*', stdout)' instead of the combination of strcat and printf. (print_statfs) [!FLASK_LINUX]: Print `*' for %S and %C, rather than `S' and `C'. (print_stat) [!FLASK_LINUX]: Likewise. * src/remove.c (AD_mark_current_as_unremovable): Replace dead code with an assertion.2002-06-26 Paul Eggert <eggert@twinsun.com> * src/ls-test: Use grep, not egrep.2002-06-25 Jim Meyering <meyering@lucent.com> * src/remove.c (prompt): Add a comment to help translators work around the problem of making the translations of the adjective `write-protected' and the corresponding run-time-variable noun (e.g., file, directory, symlink, etc.) consistent. From Paul Eggert.2002-06-24 Jim Meyering <meyering@lucent.com> * src/stat.c (usage): Add missing open-quote. Reported by Michael Piefel.2002-06-22 Jim Meyering <meyering@lucent.com> * Version 4.1.9. * configure.ac: Invoke AC_GNU_SOURCE very early. * tests/rm/rm1: Accommodate the slightly different diagnostic we get on some systems, due to `unlink (dir)' failing with EACCES rather than EPERM. E.g. for ReiserFS on Linux-2.4.18.2002-06-21 Jim Meyering <meyering@lucent.com> * Makefile.maint (wget-update): Checkout into config/. Warn when skipping a file. * src/stat.c: Include sys/statvfs.h. [!HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H]: Include sys/param.h and sys/mount.h, to get decl of struct statfs on NetBSD 1.5.2. (NAMEMAX_FORMAT, STRUCT_STATVFS): Define. (HAVE_STRUCT_STATXFS_F_TYPE, SB_F_NAMEMAX): Define. Remove `static' attribute from decl of program_name. (human_fstype): Use f_basetype or f_fstypename if available. (print_human_time): Use nstrftime and an ISO format string, in place of strftime with `%c'. The latter is too locale-dependent. (print_statfs): Deal with lots of portability issues: some fields are available only with statfs, others only with statvfs, and some are available in both, but with different types. (do_statfs) [DEFAULT_FORMAT_TERSE]: Factor out. [DEFAULT_FORMAT_VERBOSE]: Likewise. * src/copy.c: Change all `preserving ...' diagnostics to `failed to preserve ...' to make the failure clearer. * src/cp.c: Likewise.2002-04-03 Alfred M. Szmidt <ams@kemisten.nu> * src/copy.c Include hurd.h. (copy_internal): Preserve the stat.st_author field.2002-06-21 Jim Meyering <meyering@lucent.com> * src/ls.c (LOGIN_NAME_MAX): Define if not already defined. (ID_LENGTH_MAX): Define. (ST_DM_MODE): New macro. Code moved from... (print_long_format): ...here. (print_long_format): Itemize and comment the individual parts of init_bigbuf. Use the above *_MAX macros.2002-06-20 Jim Meyering <meyering@lucent.com> * src/system.h: Change `defined(X)' syntax to `defined X' in cpp directives.2002-06-17 Jim Meyering <meyering@lucent.com> * tests/setgid-check: Interpret a permissions string of drwxr-xr-x (DOS/Windows) as meaning the cwd is not setgid. Reported by Rich Dawe.2002-05-19 Paul Eggert <eggert@twinsun.com> Add support for new ls option --author, for GNU/Hurd. Derived from a suggestion by Alfred M. Szmidt. * doc/coreutils.texi (ls invocation), NEWS: Document this. * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author. * src/ls.c (st_author) [! HAVE_STRUCT_STAT_ST_AUTHOR]: New macro. (print_author): New var. (AUTHOR_OPTION): New enum val. (long_options, decode_switches, print_long_format, usage): Support --author. (format_user): New function. (print_long_format): Use it. Make print buffer a bit bigger.2002-06-15 Jim Meyering <meyering@lucent.com> * tests/sample-test (trap): Make sure the temporary hierarchy is writable before removing it. * tests/mv/perm-1: New file, to demonstrate fix of 2002-06-12. * tests/mv/Makefile.am (TESTS): Add perm-1. * src/system.h: For GNU libc 2.2 and newer, ensure that <sys/types.h> has been included before this file.2002-06-13 Richard Dawe <richdawe@bigfoot.com> Accommodate DOS file name limitations. * tests/cp/same-file: Change temp. file name: s/\.err/_err/, for DOS. * tests/mv/force: Similar. * tests/mv/into-self: Similar. * tests/touch/no-rights: Similar. * tests/mv/mv-special-1: Remove leading `.' from temp. names.2002-06-15 Jim Meyering <meyering@lucent.com> * src/sys2.h (S_ISNAM): Add to list of S_IS* macros. Rearrange #if directives for each S_IS macro. From diffutils-2.8.2.2002-06-12 Jim Meyering <meyering@lucent.com> * src/mv.c (do_move): Give one diagnostic, not two, when unable to unlink a destination file. This bug was introduced in fileutils-3.16l.2002-06-07 Jim Meyering <meyering@lucent.com> * tests/mv/part-fail: Also accept the permission-denied diagnostic issued by some losing systems. Reported by Volker Borchert. * src/remove.c (remove_entry): Use DT_IS_DIR only if HAVE_STRUCT_DIRENT_D_TYPE is defined.2002-06-02 Jim Meyering <meyering@lucent.com> `rm' no longer uses explicit recursion, and as such is now able to remove hierarchies of effectively unlimited depth. Prior to this change, on typical systems, rm would fail (segfault) to remove hierarchies of depth greater than about 25,000. * src/remove.c: Merge in all changes from no-recursion branch. See below for details. * src/remove.h: Likewise. * src/mv.c (do_move): Adapt to new calling sequence for rm. * src/rm.c (main): Likewise.2002-06-02 Jim Meyering <meyering@lucent.com> * tests/rm/r-2: Adjust, now that we no longer report `removing all entries of directory ...'. * tests/rm/r-1: Likewise. * src/remove.c (enum Ternary): Define type. (prompt): Add a parameter. Adjust callers. (remove_entry): Attempt rmdir here, only if a directory is `known' to be empty. Significant rework. (remove_dir): Propagate failure `up' also when rmdir fails.2002-06-01 Jim Meyering <meyering@lucent.com> * tests/rm/Makefile.am (TESTS): Add rm5. * tests/rm/rm5: New test.2002-05-30 Jim Meyering <meyering@lucent.com> In interactive mode, prompt only once about an empty directory. * src/remove.c (enum Prompt_action): Define. (prompt): Two new parameters. Adjust all callers. Performance. * src/remove.c (remove_entry) [!ROOT_CAN_UNLINK_DIRS]: Don't call rmdir here.2002-05-29 Jim Meyering <meyering@lucent.com> * src/remove.c (AD_pop_and_chdir): Don't use errno (it's not valid) in diagnostic for changed dev/ino. (remove_entry): Tweak diagnostic.2002-05-27 Jim Meyering <meyering@lucent.com> * src/remove.c (ROOT_CAN_UNLINK_DIRS): Define. (AD_pop_and_chdir): Propagate status as we traverse back `up' the tree. (DO_UNLINK, DO_RMDIR): Define. (remove_entry) [ROOT_CAN_UNLINK_DIRS]: Add code so this works also on systems where root can use `unlink' to remove directories.2002-05-24 Jim Meyering <meyering@lucent.com> * tests/mv/mv-special-1: Adapt for changed format of --verbose output.2002-05-22 Jim Meyering <meyering@lucent.com> * src/remove.c: Include file-type.h. Include file type in prompt when asking whether to remove file. Based on a patch from Paul Eggert. * src/remove.c (prompt): Add comment. * src/remove.c (remove_dir): Fix another (known) leak. * tests/rm/rm3: Don't depend on order of traversal of dir entries. It is nondeterministic on some types of filesystems. * src/remove.c (hash_freer): New function. (AD_mark_helper): Use it. (AD_mark_as_unremovable): xstrdup the filename argument. (remove_dir): Free directory name. * src/remove.c (remove_entry): Fail also when trying to remove a directory without the --recursive option. Change a diagnostic, s/unlink/remove/, now that it can apply also to a directory.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -