platform/upstream/coreutils.git
24 years ago(usage): List new --target-directory=... usage.
Jim Meyering [Thu, 23 Dec 1999 09:34:25 +0000 (09:34 +0000)]
(usage): List new --target-directory=... usage.

24 years agorewrite expression (equivalently) at request of Paul Eggert
Jim Meyering [Wed, 22 Dec 1999 20:49:19 +0000 (20:49 +0000)]
rewrite expression (equivalently) at request of Paul Eggert

24 years ago*** empty log message ***
Jim Meyering [Wed, 22 Dec 1999 16:51:48 +0000 (16:51 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Wed, 22 Dec 1999 16:32:24 +0000 (16:32 +0000)]
*** empty log message ***

24 years ago(ceil_percent): Remove.
Jim Meyering [Wed, 22 Dec 1999 16:32:07 +0000 (16:32 +0000)]
(ceil_percent): Remove.
(show_dev): Avoid overflow problems when calculating percent.
Do not display negative percents.

24 years ago*** empty log message ***
Jim Meyering [Wed, 22 Dec 1999 14:30:45 +0000 (14:30 +0000)]
*** empty log message ***

24 years agoUse $file, not $tmp/file. Exit 77 if run as root.
Jim Meyering [Wed, 22 Dec 1999 14:30:23 +0000 (14:30 +0000)]
Use $file, not $tmp/file.  Exit 77 if run as root.

24 years ago*** empty log message ***
Jim Meyering [Wed, 22 Dec 1999 11:18:06 +0000 (11:18 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Wed, 22 Dec 1999 11:15:26 +0000 (11:15 +0000)]
*** empty log message ***

24 years ago(regress-1): New test for the above.
Jim Meyering [Wed, 22 Dec 1999 11:15:15 +0000 (11:15 +0000)]
(regress-1):  New test for the above.

24 years ago*** empty log message ***
Jim Meyering [Wed, 22 Dec 1999 11:14:30 +0000 (11:14 +0000)]
*** empty log message ***

24 years ago(get_date): Fix typo in time_t overflow test.
Jim Meyering [Wed, 22 Dec 1999 11:14:05 +0000 (11:14 +0000)]
(get_date): Fix typo in time_t overflow test.
From Michael Stone.

24 years ago.
Jim Meyering [Mon, 20 Dec 1999 10:42:32 +0000 (10:42 +0000)]
.

24 years agoRemove kludge, now that I'm using the fixed autoconf-2.14a-1999-12-20.
Jim Meyering [Mon, 20 Dec 1999 10:37:27 +0000 (10:37 +0000)]
Remove kludge, now that I'm using the fixed autoconf-2.14a-1999-12-20.

24 years ago*** empty log message ***
Jim Meyering [Mon, 20 Dec 1999 10:11:28 +0000 (10:11 +0000)]
*** empty log message ***

24 years agotweak comment
Jim Meyering [Sun, 19 Dec 1999 15:51:32 +0000 (15:51 +0000)]
tweak comment

24 years agotweak comment
Jim Meyering [Sun, 19 Dec 1999 15:21:19 +0000 (15:21 +0000)]
tweak comment

24 years ago*** empty log message *** FILEUTILS-4_0l
Jim Meyering [Sun, 19 Dec 1999 10:49:15 +0000 (10:49 +0000)]
*** empty log message ***

24 years ago(lstat.c): Adapt rule to handle new parts of xstat.in.
Jim Meyering [Sun, 19 Dec 1999 10:46:19 +0000 (10:46 +0000)]
(lstat.c): Adapt rule to handle new parts of xstat.in.
(lstat.c): Likewise.

24 years ago(slash_aware_lstat): New function.
Jim Meyering [Sun, 19 Dec 1999 10:45:50 +0000 (10:45 +0000)]
(slash_aware_lstat): New function.
(rpl_@xstat@): Use it.

24 years ago*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 10:43:18 +0000 (10:43 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 10:42:51 +0000 (10:42 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sun, 19 Dec 1999 10:25:06 +0000 (10:25 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 10:23:58 +0000 (10:23 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 10:23:47 +0000 (10:23 +0000)]
*** empty log message ***

24 years ago[! LSTAT_FOLLOWS_SLASHED_SYMLINK]: Use lstat wrapper.
Jim Meyering [Sun, 19 Dec 1999 10:23:26 +0000 (10:23 +0000)]
[! LSTAT_FOLLOWS_SLASHED_SYMLINK]: Use lstat wrapper.
[Notice the new test in m4/lstat-slash.m4. ]
(main): Back out change from 1999-02-19 that made ls remove
trailing slashes from command line arguments to accommodate early
versions of Linux.  Now, `ls symlink-to-dir/' acts like
`ls symlink-to-dir/.' thus following the symbolic link, as POSIX says
it should.  Suggestion from Bruno Haible and Andreas Schwab.

24 years ago.
Jim Meyering [Sun, 19 Dec 1999 10:22:47 +0000 (10:22 +0000)]
.

24 years ago.
Jim Meyering [Sun, 19 Dec 1999 10:21:51 +0000 (10:21 +0000)]
.

24 years ago(TESTS): Add symlink-slash.
Jim Meyering [Sun, 19 Dec 1999 10:21:34 +0000 (10:21 +0000)]
(TESTS): Add symlink-slash.

24 years agoremove unused test= stmt
Jim Meyering [Sun, 19 Dec 1999 09:41:08 +0000 (09:41 +0000)]
remove unused test= stmt

24 years ago*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 09:37:22 +0000 (09:37 +0000)]
*** empty log message ***

24 years agobump serial number
Jim Meyering [Sun, 19 Dec 1999 09:37:06 +0000 (09:37 +0000)]
bump serial number

24 years agoUse the new macro: jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
Jim Meyering [Sun, 19 Dec 1999 09:36:55 +0000 (09:36 +0000)]
Use the new macro: jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.

24 years ago*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 09:34:29 +0000 (09:34 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 09:33:18 +0000 (09:33 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 18 Dec 1999 23:00:58 +0000 (23:00 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 18 Dec 1999 22:41:36 +0000 (22:41 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 18 Dec 1999 16:04:47 +0000 (16:04 +0000)]
*** empty log message ***

24 years ago(wipename): When repeatedly renaming a file, making the name shorter
Jim Meyering [Sat, 18 Dec 1999 16:00:49 +0000 (16:00 +0000)]
(wipename): When repeatedly renaming a file, making the name shorter
and shorter, skip to the next shorter length length if a rename fails (e.g. due to
permission denied).  Otherwise, this loop would iterate for so long that shred would
appear to be stuck in an infinite loop for any but the shortest file names.

24 years ago*** empty log message ***
Jim Meyering [Sat, 18 Dec 1999 11:48:43 +0000 (11:48 +0000)]
*** empty log message ***

24 years ago(print_entry): Correct do_lookup test so that who
Jim Meyering [Sat, 18 Dec 1999 11:48:37 +0000 (11:48 +0000)]
(print_entry): Correct do_lookup test so that who
prints whatever host information it has, even without --lookup.

24 years ago*** empty log message ***
Jim Meyering [Wed, 15 Dec 1999 10:15:36 +0000 (10:15 +0000)]
*** empty log message ***

24 years ago(decode_switches): If -c or -u is specified and not -l (or any other
Jim Meyering [Wed, 15 Dec 1999 08:38:54 +0000 (08:38 +0000)]
(decode_switches): If -c or -u is specified and not -l (or any other
option that implies -l), and no sort-type was specified,
then sort by the ctime (-c) or atime (-u).  Part of this change reverts
the 1998-01-10 delta.
(usage): Update to reflect this change.
Reported by Paul Slootman via Michael Stone.

24 years ago.
Jim Meyering [Tue, 14 Dec 1999 09:00:08 +0000 (09:00 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 22:37:15 +0000 (22:37 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 15:08:21 +0000 (15:08 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 15:04:27 +0000 (15:04 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 15:03:51 +0000 (15:03 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 07:33:13 +0000 (07:33 +0000)]
*** empty log message ***

24 years ago(make_path): Consistently use error to output
Jim Meyering [Mon, 13 Dec 1999 07:30:57 +0000 (07:30 +0000)]
(make_path): Consistently use error to output
the verbose, `created directory ...' messages.
Reported by Bernhard Rosenkraenzer.

24 years ago*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 07:29:13 +0000 (07:29 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 06:45:13 +0000 (06:45 +0000)]
*** empty log message ***

24 years agoMove 120+ lines of stat.h-related macros from system.h (not shared)
Jim Meyering [Sun, 12 Dec 1999 21:49:25 +0000 (21:49 +0000)]
Move 120+ lines of stat.h-related macros from system.h (not shared)
to sys2.h, which is shared between fileutils, sh-utils, textutils.
* src/system.h: Move them from here...
* src/sys2.h: ... to here.

24 years ago(S_IRUSR, S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): Define
Jim Meyering [Sun, 12 Dec 1999 21:45:34 +0000 (21:45 +0000)]
(S_IRUSR, S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): Define
if not defined.  This was necessary on a NeXT Turbostation running
Mach 3.3.  Reported by Nelson H. F. Beebe.

24 years ago*** empty log message ***
Jim Meyering [Sun, 12 Dec 1999 20:26:48 +0000 (20:26 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Fri, 10 Dec 1999 16:30:28 +0000 (16:30 +0000)]
.

24 years ago.
Jim Meyering [Fri, 10 Dec 1999 16:29:54 +0000 (16:29 +0000)]
.

24 years ago.
Jim Meyering [Fri, 10 Dec 1999 15:22:55 +0000 (15:22 +0000)]
.

24 years ago(_jm_STRFTIME_PREREQS): Use 3-arg form of AC_DEFINE for HAVE_TM_GMTOFF.
Jim Meyering [Fri, 10 Dec 1999 14:35:38 +0000 (14:35 +0000)]
(_jm_STRFTIME_PREREQS): Use 3-arg form of AC_DEFINE for HAVE_TM_GMTOFF.

24 years ago*** empty log message ***
Jim Meyering [Thu, 9 Dec 1999 16:53:41 +0000 (16:53 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Thu, 9 Dec 1999 16:42:00 +0000 (16:42 +0000)]
.

24 years ago.
Jim Meyering [Thu, 9 Dec 1999 16:38:32 +0000 (16:38 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Thu, 9 Dec 1999 15:55:11 +0000 (15:55 +0000)]
*** empty log message ***

24 years agoRequire that File::Compare be available, too.
Jim Meyering [Thu, 9 Dec 1999 15:54:59 +0000 (15:54 +0000)]
Require that File::Compare be available, too.
Too many systems seem to lack it.

24 years agoAdd checks for most of the cpp macros tested in GNU's strftime.c.
Jim Meyering [Thu, 9 Dec 1999 15:54:20 +0000 (15:54 +0000)]
Add checks for most of the cpp macros tested in GNU's strftime.c.
Prompted by a patch from Paul Eggert.

24 years agoUse 1>&2 rather than `1<&-'.
Jim Meyering [Thu, 9 Dec 1999 15:52:49 +0000 (15:52 +0000)]
Use 1>&2 rather than `1<&-'.
Suggestion from Volker Borchert.

24 years ago(IGNORE_FAIL_ON_NON_EMPTY_OPTION): Likewise.
Jim Meyering [Thu, 9 Dec 1999 15:52:09 +0000 (15:52 +0000)]
(IGNORE_FAIL_ON_NON_EMPTY_OPTION): Likewise.

24 years ago(BLOCK_SIZE_OPTION, EXCLUDE_OPTION, MAX_DEPTH_OPTION):
Jim Meyering [Thu, 9 Dec 1999 15:46:39 +0000 (15:46 +0000)]
(BLOCK_SIZE_OPTION, EXCLUDE_OPTION, MAX_DEPTH_OPTION):
Define these and use them instead of `CHAR_MAX + n'.

24 years ago(BLOCK_SIZE_OPTION, SYNC_OPTION, NO_SYNC_OPTION): Define
Jim Meyering [Thu, 9 Dec 1999 15:43:41 +0000 (15:43 +0000)]
(BLOCK_SIZE_OPTION, SYNC_OPTION, NO_SYNC_OPTION): Define
these and use them instead of `CHAR_MAX + n'.

24 years ago(anonymous enum): Define TIME_OPTION, and ...
Jim Meyering [Thu, 9 Dec 1999 15:39:38 +0000 (15:39 +0000)]
(anonymous enum): Define TIME_OPTION, and ...
(longopts): ...use it here instead of `CHAR_MAX + 1'.
(main): Likewise.

24 years ago(enum): Remove useless CHAR_MAX + 2
Jim Meyering [Thu, 9 Dec 1999 15:35:41 +0000 (15:35 +0000)]
(enum): Remove useless CHAR_MAX + 2

24 years agoTest more of the framework (touch's -a and -m
Jim Meyering [Wed, 8 Dec 1999 17:05:59 +0000 (17:05 +0000)]
Test more of the framework (touch's -a and -m
options) before running the actual ls test.

24 years agos/test_failure/framework_failure/g
Jim Meyering [Wed, 8 Dec 1999 16:50:22 +0000 (16:50 +0000)]
s/test_failure/framework_failure/g

24 years ago(TESTS): Add fflush.
Jim Meyering [Sun, 5 Dec 1999 23:31:34 +0000 (23:31 +0000)]
(TESTS): Add fflush.

24 years agoRemove ftp.enst.fr.
Jim Meyering [Sun, 5 Dec 1999 22:59:30 +0000 (22:59 +0000)]
Remove ftp.enst.fr.

24 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 1999 22:36:11 +0000 (22:36 +0000)]
*** empty log message ***

24 years ago(main): Flush stdout before switching to unbuffered mode
Jim Meyering [Sun, 5 Dec 1999 22:36:02 +0000 (22:36 +0000)]
(main): Flush stdout before switching to unbuffered mode
and calling tail_forever.  Required only on Solaris2.7 -- on other
systems, using setvbuf to switch to unbufferd mode does the flush.

24 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 1999 16:45:27 +0000 (16:45 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sun, 5 Dec 1999 16:39:39 +0000 (16:39 +0000)]
.

24 years ago*** empty log message *** FILEUTILS-4_0k
Jim Meyering [Sun, 5 Dec 1999 15:14:18 +0000 (15:14 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 1999 15:13:40 +0000 (15:13 +0000)]
*** empty log message ***

24 years agoRevert the previous change.
Jim Meyering [Sun, 5 Dec 1999 15:13:21 +0000 (15:13 +0000)]
Revert the previous change.

(copy_internal): In move mode, if the rename attempt
fails, then unlink any existing destination file.  This makes a
cross-device `mv' more consistent with the intra-device behavior.
This change is required by POSIX to make a cross-device move act with
semantics similar to those of the rename syscall.  For example now
`mv' can move a file onto a symlink to itself when that symlink
is on a separate partition.  With fileutils-4.0j, it would fail with
a diagnostic saying they were the same file.
Reported by Bruno Haible.

24 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:46:39 +0000 (17:46 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sat, 4 Dec 1999 17:46:06 +0000 (17:46 +0000)]
.

24 years ago(TESTS): Add to-symlink.
Jim Meyering [Sat, 4 Dec 1999 17:45:45 +0000 (17:45 +0000)]
(TESTS): Add to-symlink.

24 years agoMake sure that the copying code used in an inter-partition
Jim Meyering [Sat, 4 Dec 1999 17:44:59 +0000 (17:44 +0000)]
Make sure that the copying code used in an inter-partition
move unlinks a destination symlink before opening it.

24 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:34:39 +0000 (17:34 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:34:05 +0000 (17:34 +0000)]
*** empty log message ***

24 years ago(trap): Be careful to close $actual before
Jim Meyering [Sat, 4 Dec 1999 17:33:49 +0000 (17:33 +0000)]
(trap): Be careful to close $actual before
removing the containing directory.  Otherwise, on some systems rmdir
fails to remove the containing directory.

24 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:31:29 +0000 (17:31 +0000)]
*** empty log message ***

24 years agoList --full-time dates upon failure.
Jim Meyering [Sat, 4 Dec 1999 17:31:23 +0000 (17:31 +0000)]
List --full-time dates upon failure.

24 years ago.
Jim Meyering [Sat, 4 Dec 1999 17:30:24 +0000 (17:30 +0000)]
.

24 years agoAdapt to reflect this change in behavior.
Jim Meyering [Sat, 4 Dec 1999 17:30:16 +0000 (17:30 +0000)]
Adapt to reflect this change in behavior.
Make sure the VERSION_CONTROL envvar is not set.
Run diff if comparison fails.

24 years agoUse mv, ls, rm, not $MV, $LS, $RM.
Jim Meyering [Sat, 4 Dec 1999 17:24:19 +0000 (17:24 +0000)]
Use mv, ls, rm, not $MV, $LS, $RM.

24 years ago(copy_internal): Be consistent with intra-device behavior
Jim Meyering [Sat, 4 Dec 1999 17:21:47 +0000 (17:21 +0000)]
(copy_internal): Be consistent with intra-device behavior
and *do* allow `mv' to move a file onto a symlink to itself when that
symlink is on a separate partition.  With fileutils-4.0j, it would
fail with a diagnostic saying they were the same file.
Reported by Bruno Haible.

24 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:21:06 +0000 (17:21 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:05:27 +0000 (17:05 +0000)]
*** empty log message ***

24 years agoGive the right diagnostic when failing to create a file in an
Jim Meyering [Sat, 4 Dec 1999 17:03:43 +0000 (17:03 +0000)]
Give the right diagnostic when failing to create a file in an
unwritable directory.

(touch): Record errno upon failed errno and use that
saved value if a subsequent fstat, stat or utime call fails.
Reported by Wichert Akkerman via Michael Stone.

24 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 16:56:07 +0000 (16:56 +0000)]
*** empty log message ***

24 years ago(check_symlink_color): New variable.
Jim Meyering [Sat, 4 Dec 1999 16:55:27 +0000 (16:55 +0000)]
(check_symlink_color): New variable.
(main): Set it if we need to check for dangling symlinks when
displaying colors.
(gobble_file): Check check_symlink_color instead of print_with_color.