1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00
Files
coreutils/old/fileutils/ChangeLog

688 lines
23 KiB
Plaintext
Raw Normal View History

1998-05-24 14:02:44 +00:00
1998-05-24 Jim Meyering <meyering@ascend.com>
1998-05-16 05:18:07 +00:00
* Version 3.16o.
1998-05-16 04:40:58 +00:00
1998-05-24 17:45:14 +00:00
* src/ansi2knr.c: Use new version from automake-1.3.
1998-05-24 14:02:44 +00:00
* src/chown.c: Accept new option, --dereference.
--no-dereference is now the default.
(enum Change_status) [CH_NOT_APPLIED]: New member.
(change_symlinks): Enable this by default, now.
(describe_change): Handle new case.
(change_file_owner): Add new parameter: cmdline_arg. Update callers.
Reorganize to reflect changed semantics.
(LCHOWN): Remove definitions.
* lib/lchown.c: New file.
1998-05-21 Jim Meyering <meyering@ascend.com>
* configure.in (ALL_LINGUAS): Add russian (ru).
1998-05-16 Jim Meyering <meyering@ascend.com>
1998-05-16 04:40:58 +00:00
* src/remove.c (hash_compare_strings): Return true or false, not 1/0.
(remove_cwd_entries): Use RM_OK, not equivalent literal `1'.
* lib/hash.c (is_prime): Ansideclify.
(next_prime): Ansideclify. Add an assertion.
* lib/Makefile.am (EXTRA_DIST): Remove. Automake groks the `LIBOBJS='
lines from the m4/*.m4 macros, so the hack of including some
custom-replaced C source file names here is no longer needed.
* configure.in (jm_MACROS): New wrapper macro.
Remove uses of most jm_* macros.
* acconfig.h (HAVE_STRUCT_UTIMBUF): Remove #undef. Now it's handled
as part of utimbuf.m4.
(memcmp): Add #undef.
1998-05-13 03:48:05 +00:00
1998-05-12 Jim Meyering <meyering@ascend.com>
1998-05-03 23:21:39 +00:00
1998-05-13 04:15:47 +00:00
* configure.in: Use my replacement AC_ISC_POSIX rather than
open-coding it.
1998-05-13 03:48:05 +00:00
* src/copy.c (copy_internal): Plug a small leak.
1998-05-10 Jim Meyering <meyering@ascend.com>
1998-05-11 11:54:48 +00:00
* src/mv.c (do_move): Remove lots of code that was duplicated in
copy.c (copy), now that copy() has better support for mv. This fixes
a bug with cross-filesystem `mv -i' whereby you could get two prompts
for the same destination file and eventually remove the destination
file even though one of the responses was negative.
Reported by Dirk Lattermann.
* src/copy.h: Better support for mv:
[struct cp_options] (move_mode): New member.
* src/copy.c (copy_internal): Use new move_mode member.
Add parameter.
(copy): Add parameter.
* tests/cp/Makefile.am (TESTS): Add backup-is-src.
* tests/mv/Makefile.am (TESTS): Likewise.
* lib/userspec.c: Don't declare strdup if it's defined as a macro.
Reported by Lorne Baker.
* src/Makefile.am (ginstall_SOURCES): Add copy.c and cp-hash.c.
* src/mv.c (cp_option_init): Initialize new members.
* src/cp.c (cp_option_init): Likewise.
(main): Set new preserve_* options.
1998-05-09 Jim Meyering <meyering@ascend.com>
* src/copy.h: Support for install:
[struct cp_options] (failed_unlink_is_fatal): New member.
(preserve_owner_and_group): New member.
(preserve_chmod_bits): New member.
(preserve_timestamps): New member.
(preserve): Remove member.
(set_mode): New member.
(mode): New member.
* src/copy.c (new_nondir_mode): New function. Use where appropriate.
Use more-specific preserve_* members in place of removed `preserve'.
(copy_internal): Honor failed_unlink_is_fatal.
* src/install.c (main): Rewrite argv-handling to be clearer.
(copy_file): Rewrite to use copy.c (copy).
(change_attributes): Get rid of now-(with chown wrapper)-unnecessary
`no_need_to_chown' parameter. Fix caller.
(install_file_in_file): Remove now-unnecessary `to_created' parameter.
(cp_option_init): New function.
Update several functions to take new parameter specifying copy options.
1998-05-09 20:23:38 +00:00
* tests/install: New subdir, with one basic test.
1998-05-09 20:25:09 +00:00
* tests/Makefile.am (SUBDIRS): Add install.
* configure.in (AC_OUTPUT): Add tests/install/Makefile.
1998-05-09 20:23:38 +00:00
1998-05-09 17:42:59 +00:00
* src/dd.c: Include safe-read.h.
Don't declare safe_read.
* src/touch.c: Likewise.
* configure.in (jm_TYPE_SSIZE_T): Use it.
* acconfig.h (ssize_t): Add undef.
1998-05-03 Jim Meyering <meyering@ascend.com>
1998-05-03 23:21:39 +00:00
* po/: Update from gettext-0.10.35.
* intl/: Likewise.
* configure.in: Remove use of AC_LINK_FILES.
(AC_OUTPUT): Remove po/Makefile-generating sed command.
1998-04-28 Jim Meyering <meyering@ascend.com>
* src/dircolors.c (parse_line): Use ISSPACE, not isspace.
Use unsigned char * pointers, not potentially signed ones, to avoid
sign extension.
1998-04-26 Jim Meyering <meyering@ascend.com>
* configure.in: Use jm_ASSERT.
* acconfig.h: Add NDEBUG.
* src/mv.c: Don't define NDEBUG.
* src/cp.c: Likewise.
1998-04-14 15:17:45 +00:00
1998-04-14 Jim Meyering <meyering@ascend.com>
* src/.rm-warning: New file.
* src/Makefile.am (EXTRA_DIST): Add .rm-warning
(DISTCLEANFILES): Add .rm-warn-stamp.
(rm_DEPENDENCIES): Depend on .rm-warn-stamp.
(.rm-warn-stamp): New rule.
(rm_prep): Comment out rule.
* src/df.c (main): Use STREQ in string equality tests, not strcmp.
* src/dircolors.c (dc_parse_stream): Likewise.
(dc_parse_file): Likewise.
* src/du.c (main): Likewise.
* src/ls.c (decode_switches): Likewise.
* src/remove.c (hash_compare_strings): Likewise.
* src/touch.c (main): Likewise.
1998-04-13 Jim Meyering <meyering@ascend.com>
* lib/Makefile.am (noinst_HEADERS): Add safe-read.h.
1998-04-11 Jim Meyering <meyering@ascend.com>
* lib/hash.c: Add curly braces around statements in
if/else/while/do/etc. that span more than a line -- even around
multiline simple statements or single-line simple statements
preceded by a comment line.
1998-04-09 Jim Meyering <meyering@ascend.com>
* configure.in: Don't use AC_PATH_PROG to check for perl, now that
we use jm_PERL.
1998-04-06 Jim Meyering <meyering@ascend.com>
* src/cp-hash.c (cph_hash_insert): Rename from now-conflicting
hash_insert. Also declare to be static.
* src/cp-hash.h (hash_insert): Remove declaration.
* lib/hash.c: Lots of minor spec and name changes, and new comments.
(hash_rehash): Rewrite to be easier on the allocator.
From Fran<61>ois Pinard.
* lib/hash.h: More comments.
* src/remove.c: Change names/usage of hash-related functions to work
with the above.
1998-04-05 18:24:45 +00:00
1998-04-05 Jim Meyering <meyering@ascend.com>
* lib/regex.c (WIDE_CHAR_SUPPORT): Define.
This now depends on HAVE_BTOWC so systems that lack btowc (like
solaris-2.5.1) don't lose.
1998-04-04 08:02:23 +00:00
1998-04-04 Jim Meyering <meyering@eng.ascend.com>
1998-04-04 08:07:26 +00:00
* GNUmakefile: Add conditionals so that running `make' in an
unconfigured source directory will get a reasonable diagnostic.
1998-04-04 08:02:23 +00:00
* Makefile.am (ACLOCAL_AMFLAGS): Define this, so automake/aclocal
know about the m4/ subdirectory.
* Makefile.maint (aclocal-files): Remove now-unnecessary (with
automake-1.2h and the above change) aclocal-related rules and includes.
1998-04-01 06:47:32 +00:00
1998-04-01 Jim Meyering <meyering@eng.ascend.com>
* tests/ls/cr-1: New file.
* tests/ls/Makefile.am (TESTS): Add cr-1.
1998-03-31 23:11:50 +00:00
1998-03-31 Jim Meyering <meyering@eng.ascend.com>
* src/system.h (TYPE_MAXIMUM): Cast result to `(t)' so this macro
works with `unsigned char'.
From Greg Wooledge.
(SCHAR_MIN, SCHAR_MAX, SHRT_MIN, SHRT_MAX, LONG_MAX, ULONG_MAX): Define.
* lib/xstrtol.c: Merge with the version from textutils.
* lib/memcmp.c (rpl_memcmp): Rename from memcmp.
1998-04-01 06:47:32 +00:00
1998-03-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* src/ls.c (compare_ctime, rev_cmp_ctime, compare_mtime,
rev_cmp_mtime, compare_atime, rev_cmp_atime, compare_size,
rev_cmp_size): Use file name as secondary sort key to get
consistent sorting.
1998-03-28 14:57:25 +00:00
1998-03-28 Jim Meyering <meyering@eng.ascend.com>
* src/copy.c: Add copyright.
* src/remove.c: Add copyright.
[_AIX]: Add #pragma alloca.
1998-03-27 Jim Meyering <meyering@eng.ascend.com>
* Makefile.maint ($(ACLOCAL_M4)): Replace old rule with this
dependency and the := assignment of ACLOCAL to make the default
rule use the `-I m4' option.
* Makefile.am (AUTOMAKE_OPTIONS): Require 1.2h.
1998-03-23 23:12:45 +00:00
1998-03-23 Jim Meyering <meyering@eng.ascend.com>
* acconfig.h: Remove HAVE_INTTYPES_H, now that m4/inttypes_h.m4
automatically handles it.
1998-03-21 08:54:58 +00:00
1998-03-21 Jim Meyering <meyering@eng.ascend.com>
* lib/quotearg.h: Update from patch-2.5.3.
* lib/quotearg.c: Likewise.
* src/ls.c (decode_switches): Pass a null pointer instead of address
of quotearg_quoting_options.
1998-03-19 22:27:17 +00:00
1998-03-19 Paul Eggert <eggert@twinsun.com>
* lib/fsusage.h (struct fs_usage): New member
fsu_bavail_top_bit_set.
* lib/fsusage.c: Include <limits.h>.
(CHAR_BIT, EXTRACT_TOP_BIT, PROPAGATE_TOP_BIT): New macros.
(get_fs_usage): If top bit of system variable corresponding to
fsu_bavail is set, then set fsu_bavail_top_bit_set, and
sign-extend the value when storing it into fsu_bavail.
* src/df.c (show_dev): If fsu_bavail_top_bit_set is nonzero,
assume the original value corresponding to fsu_bavail was negative.
Reported by Arne Juul.
1998-03-18 21:53:35 +00:00
1998-03-18 Jim Meyering <meyering@eng.ascend.com>
* src/Makefile.am (rm-prep): Add dependency and rule to save users
with `.' too early in their PATH from the `rm: cannot unlink `rm':
Text file busy' error. Suggestion from Philippe De Muyter.
1998-03-15 09:11:44 +00:00
1998-03-15 Jim Meyering <meyering@eng.ascend.com>
1998-02-25 22:40:24 +00:00
1998-03-14 15:32:55 +00:00
* Version 3.16n.
1998-03-15 18:05:05 +00:00
* lib/chown.c: Use #if, not #ifdef with HAVE_ macros.
* lib/closeout.c: Likewise.
* lib/dirname.c: Likewise.
* lib/euidaccess.c: Likewise.
* lib/fileblocks.c: Likewise.
* lib/filemode.c: Likewise.
* lib/ftruncate.c: Likewise.
* lib/group-member.c: Likewise.
* lib/isdir.c: Likewise.
* lib/long-options.c: Likewise.
* lib/mountlist.c: Likewise.
* lib/path-concat.c: Likewise.
* lib/save-cwd.c: Likewise.
* lib/savedir.c: Likewise.
* lib/strcasecmp.c: Likewise.
* lib/strdup.c: Likewise.
* lib/userspec.c: Likewise.
* lib/yesno.c:: Likewise.
* src/chgrp.c: Use #if, not #ifdef with HAVE_ macros.
Use #if !, not #ifndef with HAVE_ macros.
* src/chown.c: Likewise.
* src/copy.c: Likewise.
* src/dd.c: Likewise.
* src/dircolors.c: Likewise.
* src/install.c: Likewise.
* src/ls.c: Likewise.
* src/mv.c: Likewise.
* src/touch.c: Likewise.
1998-03-15 09:48:52 +00:00
* configure.in: Use jm_PREREQ.
1998-03-15 09:11:44 +00:00
1998-03-14 Jim Meyering <meyering@eng.ascend.com>
1998-03-14 16:38:41 +00:00
Revert most `getdate.h -> get-date.h' changes of 1998-02-20.
With automake-1.2f, that hack is no longer needed.
1998-03-13 23:39:10 +00:00
* src/remove.c: Use `virtual memory exhausted' message, not
`Memory exhausted' to be consistent with the majority of other
such messages.
Say `removing all...', not `removing any...'.
* src/rmdir.c (remove_parents): Be consistent with documentation of
--verbose option and with remove.c in saying `removing...' before
the operation is attempted.
(main): Likewise.
Suggestions from Santiago Vila.
* src/copy.c (copy_dir): Add new parameter, copy_into_self, and set it.
(copy_internal): Likewise.
(copy): Likewise.
Update all callers.
1998-03-13 23:39:48 +00:00
* src/copy.h (copy): Update prototype.
1998-03-13 23:39:10 +00:00
* src/cp.c (do_copy): Add unused arg in calls to copy.
* src/mv.c (do_move): Add &copy_into_self arg in call to copy.
Don't remove source directory when copy_into_self is nonzero.
Reported by Arne Henrik Juul.
1998-03-14 10:42:01 +00:00
* tests/mv/into-self: Test for the above.
* tests/mv/Makefile.am (TESTS): Add into-self.
1998-03-13 23:39:10 +00:00
1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
* userspec.c (parse_user_spec) [__DJGPP__]: Make function know
about any arbitrary user and group by pretending to be the user
and to belong to the group specified in `spec_arg' argument.
* idcache.c (getuidbyname) [__DJGPP__]: Make function know about
any arbitrary user name.
(getgidbyname) [__DJGPP__]: Make function know about any arbitrary
group name.
1998-02-25 22:40:24 +00:00
1998-02-24 Jim Meyering <meyering@eng.ascend.com>
* lib/xstrtol.c (TYPE_SIGNED): Define.
(TYPE_MAXIMUM): Define.
(ULONG_MAX): Use TYPE_MAXIMUM.
(LONG_MAX): Use TYPE_MAXIMUM.
* lib/fnmatch.c: Update from libit.
* lib/idcache.c: Update from libit.
1998-02-23 Paul Eggert <eggert@twinsun.com>
* lib/quotearg.h, lib/quotearg.c: New files.
* lib/Makefile.am (libfu_a_SOURCES): Add quotearg.c.
(noinst_HEADERS): Add quotearg.h.
* src/ls.c: Include new file quotearg.h.
(enum indicator_style): Rename all to classify, and not_programs
to file_type, to match option spellings. All users changed.
(indicator_style_args): New constant.
(quote_funny_chars, quote_as_string, quote_shell): Remove;
(filename_quoting_options, dirname_quoting_options): Use these
variables instead.
(long_options): Add --indicator-style, --quoting-style,
--show-control-chars. Remove --quote-shell.
(dired_dump_obstack): Remove style parameter and don't output style.
(main): Go back to previous method of outputting //DIRED//
and //SUBDIRED// lines, without style. But add a new
//DIRED-OPTIONS// line that does output style.
(decode_switches, usage): Add --indicator-style, --quoting-style,
--show-control-chars. Remove --quote-shell.
(decode_switches): Default from QUOTING_STYLE environment variable.
Set new quoting vars.
(quote_name): Renamed from quote_filename.
Take new arg specifying quoting options.
Always print; do not have a special case for null FILE * argument.
All callers changed.
Move the guts of this function to new file quotearg.c.
(length_of_file_name_and_frills): Use quotearg_buffer instead
of (old) quote_filename to find length of file name.
(decode_switches, parse_ls_color, print_dir, gobble_file,
get_link_name): Quote output in diagnostics.
* NEWS, doc/fileutils.texi: Describe above changes.
* doc/fileutils.texi: Mention that control characters are output
as question marks if output is a terminal.
1998-02-22 09:19:36 +00:00
1998-02-22 Jim Meyering <meyering@eng.ascend.com>
1998-02-21 16:15:23 +00:00
* Version 3.16m.
1998-02-22 09:19:36 +00:00
* ChangeLog-1997: New file.
1998-02-22 09:20:33 +00:00
* Makefile.am (EXTRA_DIST): Add ChangeLog-1997.
1998-02-22 09:19:36 +00:00
1998-02-21 Jim Meyering <meyering@eng.ascend.com>
1998-02-21 16:15:23 +00:00
* configure.in (AC_OUTPUT): Add tests/mv/Makefile.
* tests/Makefile.am (SUBDIRS): Add mv.
* tests/mv: New directory
* tests/mv/mv-special-1: New test.
1998-02-20 21:51:48 +00:00
1998-02-20 Jim Meyering <meyering@eng.ascend.com>
* src/touch.c: Include get-date.h.
Remove get_date decl.
* lib/getdate.h: Removed. Could cause confusion with an
1998-02-22 08:19:19 +00:00
automake-generated `.y.h' rule.
1998-02-20 21:51:48 +00:00
* lib/get-date.h: Renamed from getdate.h.
* lib/getdate.y: s/getdate.h/get-date.h/
* lib/Makefile.am (noinst_HEADERS): s/getdate.h/get-date.h/
1998-02-19 21:37:45 +00:00
1998-02-19 Jim Meyering <meyering@eng.ascend.com>
1998-02-13 08:49:34 +00:00
1998-02-19 21:37:45 +00:00
1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
* lib/fileblocks.c [__DJGPP__]: Add missing typedef for daddr_t.
1998-02-13 Jim Meyering <meyering@eng.ascend.com>
1998-02-13 08:49:34 +00:00
* src/mv.c (cp_option_init): Set copy_as_regular to 0, not 1.
Otherwise, mv tries to open special files.
Reported by Kjetil Torgrim Homme.
1998-02-08 22:17:10 +00:00
1998-02-08 Jim Meyering <meyering@eng.ascend.com>
1998-02-07 09:59:05 +00:00
1998-02-09 07:02:15 +00:00
* Makefile.maint (cvs-dist): Update po/ to clear modified status
of *.po files before running cvs tag -c.
1998-02-09 07:01:02 +00:00
1998-02-08 22:17:10 +00:00
* src/ln.c (usage): Reword to use `TARGET' and `LINK_NAME' in
description.
1998-02-07 Jim Meyering <meyering@eng.ascend.com>
1998-02-07 09:59:05 +00:00
* GNUmakefile: New file.
* Makefile.am (EXTRA_DIST): Add GNUmakefile.
Don't include Makefile.maint from here. It's included from GNUmakefile.
* configure.in: Don't use AM_MAINTAINER_MODE.
(jm_PERL): Use this.
* src/Makefile.am (EXTRA_DIST): Remove dcgen.pl. Add dcgen.
(CLEANFILES): Remove dcgen.
(dircolors.h): Use $(PERL).
(.pl): Remove rule.
1998-02-01 09:56:46 +00:00
1998-02-01 Jim Meyering <meyering@na-net.ornl.gov>
1998-02-01 09:58:33 +00:00
* POTFILES.in: Add remove.c. Reported by Santiago Vila.
1998-02-01 09:56:46 +00:00
1998-01-28 08:14:56 +00:00
1998-01-28 Jim Meyering <meyering@na-net.ornl.gov>
* src/df.c (print_header): Tweak format to align heading over
last column of `df -i' output. From Andreas Schwab.
1998-01-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makefile.am: Include Makefile.maint from $(srcdir).
1998-01-25 09:29:46 +00:00
1998-01-25 Jim Meyering <meyering@na-net.ornl.gov>
* Version 3.16l.
1998-01-25 21:21:47 +00:00
* Makefile.maint: New file.
* Makefile.am: Move rules common to textutils, fileutils, sh-utils
into Makefile.maint.
Include Makefile.maint.
(EXTRA_DIST): Add Makefile.maint.
1998-01-25 09:29:46 +00:00
* src/cp.c (re_protect): Don't fail for non-root when chown fails
due not only to lack of permission (EPERM), but also to lack of
support (EINVAL). Reported by Bengt Martensson.
* src/copy.c (DO_CHOWN): Likewise.
1998-01-24 08:46:21 +00:00
1998-01-24 Jim Meyering <meyering@na-net.ornl.gov>
1998-01-24 16:22:11 +00:00
* tests/ls/time-1 (test_failure): Rename does not update ctime;
link does -- so use ln, not mv.
Note that the SunOS4.1.4 failure of the ctime test is expected.
1998-01-24 08:46:21 +00:00
* src/system.h (TYPE_MINIMUM): Add extra outer cast to work around
bug in Cray C 5.0.3.0 when T == time_t.
* tests/rm/r-1: Adjust expected output for changed format of
`rm --verbose'.
* tests/rm/r-2: Likewise.
1998-01-23 22:09:18 +00:00
1998-01-23 Jim Meyering <meyering@na-net.ornl.gov>
* lib/mktime.c (__mktime_internal): Work around bug in Irix4.0.5's
C compiler. From Kaveh Ghazi.
(TYPE_MINIMUM): Define.
(TYPE_MAXIMUM): Define.
(TIME_T_MIN): Use TYPE_MINIMUM.
(TIME_T_MAX): Use TYPE_MAXIMUM.
1998-01-22 08:33:34 +00:00
1998-01-22 Jim Meyering <meyering@na-net.ornl.gov>
1998-01-22 09:03:08 +00:00
* src/dd.c: Reorder functions to obviate forward dcls.
(quit): Declare to be inline to stifle compile warning.
* src/cp.c (do_copy): Add unreachable `return 0' to stifle warning.
1998-01-22 08:33:34 +00:00
* tests/rm/sunos-1: Don't use -f. Do adjust $RM if it's a
relative path.
* tests/ls/time-1: Use GNU touch to work around problems with NFS
caching and/or clock skew. Reported by Kaveh Ghazi.
* tests/ls/Makefile.am (TESTS_ENVIRONMENT): Add TOUCH.
* src/Makefile.am (noinst_HEADERS): Add remove.h.
(mv_SOURCES): Define.
(rm_SOURCES): Define.
1998-01-21 16:37:09 +00:00
1998-01-21 Jim Meyering <meyering@na-net.ornl.gov>
* src/install.c: Declare new global, backup_type.
(main): Initialize backup_type unconditionally.
1998-01-22 08:33:34 +00:00
(copy_file): Call find_backup_file_name with new argument, backup_type.
1998-01-21 16:37:09 +00:00
* src/ln.c: Declare new global, backup_type.
(main): Initialize backup_type unconditionally.
1998-01-22 08:33:34 +00:00
(do_link): Call find_backup_file_name with new argument, backup_type.
* src/copy.c (copy_internal): Use x->backup_type, not the global.
(valid_options): Use VALID_BACKUP_TYPE and VALID_SPARSE_MODE.
1998-01-21 16:37:09 +00:00
* src/copy.h: (VALID_SPARSE_MODE): Define.
[struct cp_options] (backup_type): New member.
* src/cp.c [NDEBUG]: Comment out definition.
(do_copy): Use x->backup_type, not the global.
* src/remove.c: New file. Contains guts of old rm.c.
(remove_init): New function.
(remove_fini): New function.
(rm): Take third argument, specifying options.
* src/remove.h: New file. Associated dcls.
* src/rm.c: Remove and minimally librarify guts for use in mv.c.
(main): Pass options (`&x') to rm.
Call remove_init and remove_fini instead of open-coding them.
* src/mv.c (rm_option_init): New function.
(cp_option_init): New function.
(copy_reg): Remove now-unused function.
(do_move): Set up for and use `copy.c (copy)' in place of copy_reg.
Set up for and use `remove.c (rm)' in place of unlink.
1998-01-20 Jim Meyering <meyering@na-net.ornl.gov>
* lib/backupfile.c: Use ANSI function definitions.
Remove global declaration of backup_type.
(simple_backup_suffix): Default to `~', not `.orig'.
Use PARAMS, not __BACKUPFILE_P.
(find_backup_file_name): Add parameter, backup_type.
* lib/backupfile.h: Remove extern declaration of backup_type.
Use PARAMS, not __BACKUPFILE_P.
(VALID_BACKUP_TYPE): Define.
(find_backup_file_name): Adjust prototype.
1998-01-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* src/df.c (print_header): Fix inode format header to line it up
with the rest of the output.
1998-01-13 Jim Meyering <meyering@na-net.ornl.gov>
* lib/stat.c: Set errno to ENOENT, not EINVAL. This is consistent
with most other implementations.
1998-01-12 08:53:18 +00:00
1998-01-12 Jim Meyering <meyering@na-net.ornl.gov>
* lib/fileblocks.c: Include sys/param.h only #if HAVE_SYS_PARAM_H.
1998-01-12 08:55:42 +00:00
Move function-spanning `#if ...BSIZE' directive to follow inclusion
of sys/param.h since BSIZE is sometimes defined in sys/param.h.
1998-01-12 08:55:01 +00:00
Reported by Philippe De Muyter.
1998-01-12 08:53:18 +00:00
1998-01-10 10:36:41 +00:00
1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
1998-01-11 09:14:02 +00:00
* Version 3.16k.
1998-01-10 15:08:00 +00:00
* src/install.c (install_file_to_path): New function.
1998-01-11 09:14:02 +00:00
FIXME: update fileutils.texi.
1998-01-10 15:08:00 +00:00
(main): Handle new option, -D.
Based on a patch from Marty Leisner.
(usage): Describe -D.
1998-01-10 14:23:08 +00:00
* src/ls.c (decode_switches) [-u]: Fix bug whereby -u worked only
with -l or -t. Now, -u (like -c) implies --sort=time.
1998-01-10 13:36:09 +00:00
(usage): Correct descriptions of --sort, --time, and -t.
Suggestions from Andreas Schwab.
1998-01-10 15:09:46 +00:00
Add test for the above fix.
1998-01-10 13:36:09 +00:00
* configure.in (AC_OUTPUT): Add tests/ls/Makefile.
* tests/Makefile.am (SUBDIRS): Add ls.
* tests/ls: New directory.
* tests/ls/Makefile.am: New file.
* tests/ls/time-1: New file.
1998-01-10 10:36:41 +00:00
* lib/makepath.c (make_path): Reformat 3 if-stmts to test
`if (newly_created_dir)' only once. Suggestion from Andreas Schwab.
1998-01-06 23:53:50 +00:00
1998-01-06 Jim Meyering <meyering@na-net.ornl.gov>
1998-01-07 07:45:46 +00:00
* lib/getdate.y: Move inclusion of getdate.h and dependent extern
declarations down so getdate.h's prototype follows the sometimes-
enabled definition of `const' to nothing. Otherwise, the prototype
wouldn't match the definition because of the defined-away `const'.
1998-01-06 23:53:50 +00:00
From Kaveh Ghazi.
1998-01-07 07:45:46 +00:00
(get_date): ANSI-fy definition.
Add %expect directive.
1998-01-06 23:53:50 +00:00
1998-01-10 10:36:41 +00:00
1998-01-05 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* lib/makepath.c (make_path): Put only newly created directories
on the LEADING_DIRS list.
1998-01-05 17:43:31 +00:00
1998-01-05 Paul Eggert <eggert@twinsun.com>
* lib/fsusage.c (PROPAGATE_ALL_ONES): New macro.
(get_fs_usage): If a value consists entirely of 1 bits,
propagate this info to the output by setting it to (uintmax_t) -1.
* src/df.c (df_readable): New function.
(show_dev): If a value consists entirely of 1 bits, or is derived
from some other value that consists entirely of 1 bits, report "-".
Check inode and block counts more carefully for plausibility,
to avoid arithmetic overflow when computing percentages.
1998-01-04 22:54:19 +00:00
1998-01-04 Jim Meyering <meyering@na-net.ornl.gov>
1998-01-04 23:27:12 +00:00
* Version 3.16j.
1998-01-04 23:28:28 +00:00
* lib/Makefile.in: Regenerated with patched automake-1.2d.
See README-alpha.
1998-01-04 22:54:19 +00:00
* src/chgrp.c: Use a single enumerated type, Verbosity, instead of
the two booleans, verbose and changes_only. This fixes a bug whereby
--change had the same effect as --verbose.
* src/chmod.c: Likewise.
* src/chown.c: Likewise.
Reported by Paul Eggert.
1998-01-04 Paul Eggert <eggert@twinsun.com>
Check for write errors more carefully.
* lib/Makefile.am (libfu_a_SOURCES): Add closeout.c.
(noinst_HEADERS): Add closeout.h.
* lib/closeout.c, lib/closeout.h: New files.
* lib/long-options.c (parse_long_options),
src/chgrp.c, src/chmod.c, src/chown.c, src/cp.c, src/dd.c,
src/df.c, src/dircolors.c, src/du.c, src/install.c, src/ln.c,
src/ls.c, src/mkdir.c, src/mkfifo.c, src/mknod.c, src/mv.c,
src/mvdir.c, src/rm.c, src/rmdir.c, src/sync.c, src/touch.c
(main, usage): Check for write error to stdout before exiting.
Include "closeout.h".
1998-01-03 11:58:49 +00:00
1998-01-03 Jim Meyering <meyering@na-net.ornl.gov>
1998-01-03 16:47:35 +00:00
* src/df.c (show_dev): Treat `fsu.fsu_bavail == (unsigned long) -1'
just like `fsu.fsu_blocks == 0' as an indicator that usage information
1998-01-03 18:09:23 +00:00
is invalid. This happens with Solaris-5.5.1 CD-ROM mount points.
1998-01-03 16:47:35 +00:00
1998-01-03 11:58:49 +00:00
* lib/save-cwd.h: Guard PARAMS-enabling definition with
`defined PROTOTYPES || (defined __STDC__ && __STDC__)' to avoid
problems with Irix4's cc. From Kaveh Ghazi.
* lib/getdate.h: Likewise, but just to be consistent.
* configure.in: Convert the .o suffix on files in LIBOBJS to $U.o so
those files will be built via the ANSI2KNR-filtering rules if necessary.
1998-01-03 18:10:47 +00:00
Reported by Kaveh Ghazi.
1998-01-03 11:58:49 +00:00
1998-01-02 23:16:53 +00:00
1998-01-02 Jim Meyering <meyering@na-net.ornl.gov>
1998-01-01 19:36:19 +00:00
* Version 3.16i.
1998-01-02 23:18:08 +00:00
Fix problem with `install -d'. Reported by Marty Leisner.
* src/install.c (get_ids): When otherwise unspecified,
set uid and gid to -1.
1998-01-02 23:16:53 +00:00
* lib/makepath.c (make_path): Try to change ownership only if we've
just created the directory. Fix latent bug (s/&&/||/ in two places --
also, note that it could not be exercised via install or mkdir)
whereby chown would not be invoked when only one of owner/group is
not -1.
1998-01-01 Jim Meyering <meyering@na-net.ornl.gov>
1998-01-01 21:33:29 +00:00
* src/rm.c (remove_cwd_entries): Initialize the entry-name obstack
only once and never free it.
1992-10-31 20:42:48 +00:00
Local Variables:
version-control: never
End: