📄 changelog-1997
字号:
* acconfig.h (D_TYPE_IN_DIRENT): Define. * configure.in: Move code to check for d_ino into its own file. Use jm_STRUCT_DIRENT_D_TYPE and jm_STRUCT_DIRENT_D_INO. * src/chmod.c (change_file_mode): Call describe_change with a 3-state argument. (describe_change): Report whether the operation was successful, a failure, or that the request was a no-op. Before, running `chmod --verb u-r /' as non-root reported mode of / changed to 0355 (-wxr-xr-x) chmod: /: Not owner Reported by Philippe Schnoebelen <phs@hobbes.fing.edu.uy>1997-07-28 Jim Meyering <meyering@na-net.ornl.gov> * configure.in (AC_OUTPUT): Remove tests/ls/Makefile. Add tests/cp/Makefile and tests/mkdir/Makefile. * lib/modechange.c (mode_create_from_ref): Don't use umask. Don't use MODE_X_IF_ANY_X. * src/install.c (main): New option --preserve-timestamps (-p). (install_file_in_file): Preserve timestamps if requested. (change_timestamps): New function. (usage): Describe --preserve-timestamps. Correct --mode description. From Galen Hazelwood. * src/install.c: Declare pointer parameters const as appropriate.1997-07-13 Jim Meyering <meyering@na-net.ornl.gov> * doc/Makefile.am (EXTRA_DIST): Remove explicit mention of texinfo.texi. Now, automake includes it automatically.1997-07-09 Jim Meyering <meyering@na-net.ornl.gov> * tests/mkdir: New directory and associated files. * tests/cp: New directory and associated files. * tests/Makefile.am (SUBDIRS): Add cp and mkdir. * lib/makepath.c (make_path): Chdir to `/' before starting if necessary. Call save_cwd before while loop rather than from first iteration inside it. * lib/strverscmp.c (strverscmp): Add `parenentheses around arithmetic in operand of |' as suggested by gcc -Wall.1997-07-06 Jim Meyering <meyering@na-net.ornl.gov> * lib/idcache.c (getuidbyname): Declare parameter to be const. (getgidbyname): Declare parameter to be const.1997-07-06 Jean-Fran鏾is Bignolles <bignolle@ecoledoc.ibp.fr> * lib/modechange.h (mode_create_from_ref): Add prototype. (MODE_MASK_ALL): New define. (MODE_BAD_REFERENCE): New define. * lib/modechange.c (mode_create_from_ref): New function. * lib/strverscmp.c: New file. * lib/strverscmp.h: New file. * lib/Makefile.am (noinst_HEADERS): Add strverscmp.h. * configure.in (AC_REPLACE_FUNCS): Add strverscmp. * src/ls.c: Add new option: --sort=version (-v). * src/chgrp.c: Add new option: --reference=FILE. * src/chown.c: Add new option: --reference=FILE. * src/chmod.c: Add new option: --reference=FILE.1997-07-06 Jim Meyering <meyering@na-net.ornl.gov> * lib/idcache.c (getuser): Return NULL (rather than stringified uid) upon lookup failure. (getgroup): Likewise. (getuidbyname) [NOT_USED]: #ifdef-out unused function. (getgidbyname) [NOT_USED]: #ifdef-out unused function. Suggested by Fran鏾is Pinard. * src/ls.c (print_long_format): Reflect changes in semantics of getuser, getgroup.1997-07-04 Jim Meyering <meyering@na-net.ornl.gov> * Makefile.am (aclocal-files): Look in source directory, not build dir. From Andreas Schwab.1997-07-03 Jim Meyering <meyering@na-net.ornl.gov> * src/mv.c (apply_attributes): New function. (copy_reg): Use apply_attributes instead of open-coding the pieces. Now, failure to preserve file attributes does not cause mv to change its exit status, and such failures elicit warning diagnostics. This behavior is required by POSIX. Before, failure to preserve ownership due to insufficient access was diagnosed only for root. Prompted by a report from Bengt Martensson.Tue Jul 1 06:42:17 1997 Jim Meyering <meyering@na-net.ornl.gov> * lib/makepath.c (make_path): Reorder stat-then-mkdir-if-missing calls so that mkdir is called first. Before make_path would first `stat' a directory, then call mkdir if it didn't exist. But if some other process created the directory between the stat & mkdir, the mkdir would fail with EEXIST. Diagnosis and suggestion from Greg McGary.Sun Jun 29 17:19:30 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/dd.c (copy): Add FIXME comment. * src/mv.c (copy_reg): New parameter, SOURCE_STATS. (do_move): Update caller.Sun Jun 22 08:32:46 1997 Jim Meyering <meyering@na-net.ornl.gov> Use variable width columns when printing in multi-column mode. * src/ls.c: (init_col_info): New function. (print_current_files): Call init_col_info if format is `many_per_line' or `horizontal'. (print_many_per_line): Calculate and apply optimum column widths. (print_horizontal): Likewise. From Ulrich Drepper. * src/mv.c (movefile): Take new boolean parameter, DEST_IS_DIR, to save a stat per moved file when the destination is a directory. (main): Call movefile with additional argument. (strip_trailing_slashes_2): New function. (movefile): Remove trailing slashes from dest. Otherwise, stat ("b/") fails with ENOTDIR on systems including Linux w/libc 2.0.30. Reproduce with `rm -rf a b; mkdir a; touch b; ./mv a b/'. (do_move): Fix misleading comment.Sat Jun 21 21:26:57 1997 Jim Meyering <meyering@na-net.ornl.gov> * configure.in: Remove now-unused definitions of LN, MV, RM.Sun Jun 15 07:04:29 1997 Jim Meyering <meyering@na-net.ornl.gov> * lib/full-write.c (full_write): Add comment regarding failure due to bug in Linux Slackware 1.2.13 kernel. * lib/makepath.c: Rewrite using save-cwd.c and chdir to remove quadratic component of complexity. Before, it processed O(n^2) directory name components via stat and mkdir. Now it's O(n). This makes mkdir -p a lot more efficient when creating directories with very many components. On a Linux 2.0.30 ext2fs filesystem this command: mkdir -p `perl -e 'print "a/" x 500'` now runs in 0.77 seconds (user+sys). Contrast that with the 9.5(!) seconds it took before.Sat Jun 14 11:40:17 1997 Jim Meyering <meyering@na-net.ornl.gov> * man/Makefile.am: (EXTRA_DIST): Put man_MANS here so they are distributed. This is necessary for automake-1.1p.Tue Jun 3 15:00:00 1997 Jim Meyering <meyering@na-net.ornl.gov> * lib/fileblocks.c [HAVE_UNISTD_H]: Include unistd.h. John Gatewood Ham reported that this is necessary for DJGPP/Win95.Wed May 28 06:35:56 1997 Jim Meyering <meyering@na-net.ornl.gov> * lib/mountlist.c (read_filesystem_list): Add `|| defined (__OpenBSD__)' to the NetBSD #if so OpenBSD also uses the f_fstypename member. (fstype_to_string): Add `&& !defined (__OpenBSD__)' to the NetBSD #if expression to exclude this function definition. OpenBSD 2.1 beta doesn't need it. Patch from Hugh Daniel <hugh@ecotone.xanadu.com>Tue May 27 04:35:17 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/cp.c: Use base_name, not basename. * src/dircolors.c: Likewise. * src/install.c: Likewise. * src/ln.c: Likewise. * src/mv.c: Likewise. * src/mvdir.c: Likewise. * src/rm.c: Likewise. * configure.in: Add AC_SYS_LONG_FILE_NAMES. Check for pathconf. Don't replace basename. Now we use only base_name. Clean up kludge that worked around a bug (now-fixed) in automake. * lib/argmatch.h Change dcl of program_name so it doesn't conflict with the ubiquitous char* one. * lib/addext.c: New file. * lib/Makefile.am (libfu_a_SOURCES): Add addext.c. Remove getversion.c; get_version is now in backupfile.c. Add basename.c since it's no longer replacible. * lib/getopt.c: Update from glibc via patch-2.2.93. * lib/getopt1.c: Likewise. * lib/getopt.h: Likewise. * lib/argmatch.h: Update from FSF via patch-2.2.93. * lib/argmatch.c: Likewise. * lib/backupfile.c: Likewise. * lib/backupfile.h: Likewise. * lib/basename.c: Likewise.Sun May 25 09:21:01 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/copy.c (copy_internal): When preserving symlinks (--no-dereference) and the destination file is a symlink, use stat (not xstat) to see if it points back to the source. Reported by James <james@albion.glarp.com>. * src/du.c: Remove global variable opt_human_readable. (enum Output_units): Rename from output_size. Rename size_* to Unit_*. Add Unit_variable to correspond to --human-readable. (convert_blocks): Remove now-unused definition. (human_readable): Rename paramater n_bytes to n_blocks. Adjust conversions to reflect fact that input is now number of 512-byte blocks, not bytes. (print_size): New function. (du_files): Use print_size instead of open coding it. (count_entry): Always count in units of 512-byte blocks to delay. This lets du accumulate totals corresponding to a terabyte before overflowing 32-bit long int. Use print_size instead of open coding it. Tue Feb 4 11:58:49 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * src/du.c (convert_blocks): Remove now-unnecessary #undef. (du_files): Pass output_size unchanged to convert_blocks. No need to test output_size for size_bytes, convert_blocks handles that correctly. (count_entry): Likewise. * src/system.h (convert_blocks): Remove definition. * src/ls.c (convert_blocks): Add definition.Sun May 25 09:11:17 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/du.c [AIX]: Remove unused #pragma alloca.Sat May 24 09:20:12 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/rmdir.c: New options: --ignore-fail-on-non-empty and --verbose. (remove_parents): Implement new options. (main): Likewise. * lib/mountlist.c (read_filesystem_list): Show automount-related duplicate filesystems only when --all specified. With suggestions from Stuart Kemp. Also indent cpp directives. * configure.in (AC_CHECK_FUNCS): Add hasmntopt. (AC_CHECK_HEADERS): Add sys/mntent.h. (ALL_LINGUAS): Add Czech (cs).Wed Mar 26 23:43:57 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/du.c (main): Implement new --max-depth=N option. Based on the idea and a patch from Torbjorn Lindgren. (du_files): Likewise. (count_entry): Likewise.Sat Mar 22 20:29:10 1997 Jim Meyering <meyering@na-net.ornl.gov> * missing: New file -- from the automake-1.1m distribution.Fri Mar 21 23:58:12 1997 Jim Meyering <meyering@na-net.ornl.gov> * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.1l. (aclocal.m4): Use aclocal's new -I option.Thu Mar 13 21:27:36 1997 Jim Meyering <meyering@na-net.ornl.gov> * lib/mktime.c: (TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.Wed Mar 12 23:11:11 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/chgrp.c (change_file_group): Use uid of -1 to indicate we don't want to change the file's user ID. * m4/gettext.m4: Update from gettext-0.10.27. * acconfig.h (chown): Add #undef. * configure.in (ALL_LINGUAS): Add ko. Use jm_FUNC_CHOWN. * m4/chown.m4: New file. * m4/Makefile.am (EXTRA_DIST): Add chown.m4. * lib/chown.c: New file. * lib/Makefile.am (EXTRA_DIST): Add chown.c.Sun Mar 9 22:46:41 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/ls.c (decode_switches): Ignore value of COLUMNS envionment variable when it is the empty string. Suggestion from Ulrich Drepper. This makes it easier on people using shells (which?) with which it is not easy to unset environment variables.Wed Feb 26 23:46:39 1997 Jim Meyering <meyering@na-net.ornl.gov> * lib/getdate.y: (tYEAR_UNIT): Increase yyRelYear by $1, not just by 1. From Andreas Schwab. * src/copy.c (copy_internal): When there is any potential for ambiguity in a diagnostic, give explanatory diagnostic in addition to file name. * src/cp.c (re_protect): Likewise.Sat Feb 22 14:10:25 1997 Jim Meyering <meyering@na-net.ornl.gov> * lib/getdate.y (tMONTH_UNIT): Increase yyRelMonth by $1, not just by 1. (tDAY_UNIT): Likewise for yyRelDay. (tHOUR_UNIT): Likewise for yyRelHour. (tMINUTE_UNIT): Likewise for yyRelMinutes. (tSEC_UNIT): Likewise for yyRelSeconds. Matthew S. Levine reported that touch -d yesterday didn't work.Thu Feb 20 20:16:59 1997 Jim Meyering <meyering@na-net.ornl.gov> * lib/mktime.c: Update from libc. * lib/strtol.c: Update from libc.Wed Feb 19 22:06:32 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/ls.c (main): Remove trailing slashes from command line arguments. Otherwise, running `mkdir x; chmod 644 x; ls -d x/' (note the trailing slash) makes ls fail with permission denied on at least Linux 1.2.13 and 2.0.14 systems.Wed Feb 5 21:54:17 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/ls.c (quote_filename): Allocate two more bytes (for quotes) when using --quote-name (-Q). Feb 2 change wasn't complete. Patch from Mark Harris.Mon Feb 3 21:49:55 1997 Jim Meyering <meyering@na-net.ornl.gov> * po/POTFILES.in: Add copy.c and cp-hash.c. Remove cp-aux.c.Sun Feb 2 09:40:37 1997 Jim Meyering <meyering@na-net.ornl.gov> * src/system.h [__GNUC__]: Don't define alloca to __builtin_alloca. * Makefile.am (SUBDIRS): Add tests. * configure.in (AC_OUTPUT): Add tests/Makefile and tests/ls/Makefile. * tests: New directory. * tests/ls: New directory. * src/ls.c (quote_filename): Don't backslash-escape double quotes. This fixes a problem whereby columns weren't aligned when some files contained double quote characters and ls's --escape (-b) option was used. Reported by Mark Harris. * src/cp-hash.c (struct entry): Move dcl to this file from cp.h. (struct htab): Likewise. No longer include cp.h. Instead, include the things it used to include. (hash_insert2): Make function static. Move this function to precede the sole function from which it is called. * src/Makefile.am (noinst_HEADERS): Add copy.h, cp-hash.h. Remove cp.h. (EXTRA_DIST): Remove cp-aux.c and cp-hash.c. (cp_SOURCES): Remove cp-aux.c. Add cp-hash.c.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -