Jim Meyering [Sun, 19 Dec 1999 09:37:22 +0000 (09:37 +0000)]
*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 09:37:06 +0000 (09:37 +0000)]
bump serial number
Jim Meyering [Sun, 19 Dec 1999 09:36:55 +0000 (09:36 +0000)]
Use the new macro: jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
Jim Meyering [Sun, 19 Dec 1999 09:34:29 +0000 (09:34 +0000)]
*** empty log message ***
Jim Meyering [Sun, 19 Dec 1999 09:33:18 +0000 (09:33 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Dec 1999 23:00:58 +0000 (23:00 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Dec 1999 22:41:36 +0000 (22:41 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Dec 1999 16:04:47 +0000 (16:04 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 18 Dec 1999 11:48:43 +0000 (11:48 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 15 Dec 1999 10:15:36 +0000 (10:15 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 14 Dec 1999 09:00:08 +0000 (09:00 +0000)]
.
Jim Meyering [Mon, 13 Dec 1999 22:37:15 +0000 (22:37 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 15:08:21 +0000 (15:08 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 15:04:27 +0000 (15:04 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 15:03:51 +0000 (15:03 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 07:33:13 +0000 (07:33 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 13 Dec 1999 07:29:13 +0000 (07:29 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Dec 1999 06:45:13 +0000 (06:45 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Sun, 12 Dec 1999 20:26:48 +0000 (20:26 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Dec 1999 16:30:28 +0000 (16:30 +0000)]
.
Jim Meyering [Fri, 10 Dec 1999 16:29:54 +0000 (16:29 +0000)]
.
Jim Meyering [Fri, 10 Dec 1999 15:22:55 +0000 (15:22 +0000)]
.
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.
Jim Meyering [Thu, 9 Dec 1999 16:53:41 +0000 (16:53 +0000)]
*** empty log message ***
Jim Meyering [Thu, 9 Dec 1999 16:42:00 +0000 (16:42 +0000)]
.
Jim Meyering [Thu, 9 Dec 1999 16:38:32 +0000 (16:38 +0000)]
.
Jim Meyering [Thu, 9 Dec 1999 15:55:11 +0000 (15:55 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Thu, 9 Dec 1999 15:52:49 +0000 (15:52 +0000)]
Use 1>&2 rather than `1<&-'.
Suggestion from Volker Borchert.
Jim Meyering [Thu, 9 Dec 1999 15:52:09 +0000 (15:52 +0000)]
(IGNORE_FAIL_ON_NON_EMPTY_OPTION): Likewise.
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'.
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'.
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.
Jim Meyering [Thu, 9 Dec 1999 15:35:41 +0000 (15:35 +0000)]
(enum): Remove useless CHAR_MAX + 2
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.
Jim Meyering [Wed, 8 Dec 1999 16:50:22 +0000 (16:50 +0000)]
s/test_failure/framework_failure/g
Jim Meyering [Sun, 5 Dec 1999 23:31:34 +0000 (23:31 +0000)]
(TESTS): Add fflush.
Jim Meyering [Sun, 5 Dec 1999 22:59:30 +0000 (22:59 +0000)]
Remove ftp.enst.fr.
Jim Meyering [Sun, 5 Dec 1999 22:36:11 +0000 (22:36 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 5 Dec 1999 16:45:27 +0000 (16:45 +0000)]
*** empty log message ***
Jim Meyering [Sun, 5 Dec 1999 16:39:39 +0000 (16:39 +0000)]
.
Jim Meyering [Sun, 5 Dec 1999 15:14:18 +0000 (15:14 +0000)]
*** empty log message ***
Jim Meyering [Sun, 5 Dec 1999 15:13:40 +0000 (15:13 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 4 Dec 1999 17:46:39 +0000 (17:46 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:46:06 +0000 (17:46 +0000)]
.
Jim Meyering [Sat, 4 Dec 1999 17:45:45 +0000 (17:45 +0000)]
(TESTS): Add to-symlink.
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.
Jim Meyering [Sat, 4 Dec 1999 17:34:39 +0000 (17:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:34:05 +0000 (17:34 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 4 Dec 1999 17:31:29 +0000 (17:31 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:31:23 +0000 (17:31 +0000)]
List --full-time dates upon failure.
Jim Meyering [Sat, 4 Dec 1999 17:30:24 +0000 (17:30 +0000)]
.
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.
Jim Meyering [Sat, 4 Dec 1999 17:24:19 +0000 (17:24 +0000)]
Use mv, ls, rm, not $MV, $LS, $RM.
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.
Jim Meyering [Sat, 4 Dec 1999 17:21:06 +0000 (17:21 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:05:27 +0000 (17:05 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 4 Dec 1999 16:56:07 +0000 (16:56 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 30 Nov 1999 21:09:35 +0000 (21:09 +0000)]
(usage): Shorten help for --show-control-chars.
Jim Meyering [Tue, 30 Nov 1999 16:09:58 +0000 (16:09 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Nov 1999 19:59:18 +0000 (19:59 +0000)]
Don't include math.h or float.h.
Don't use DBL_MAX.
Use TIME_T_MAX instead.
Jim Meyering [Sun, 28 Nov 1999 19:57:54 +0000 (19:57 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Nov 1999 19:56:38 +0000 (19:56 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Nov 1999 14:04:12 +0000 (14:04 +0000)]
don't include assert.h
Jim Meyering [Sun, 28 Nov 1999 14:03:43 +0000 (14:03 +0000)]
Round more carefully so we never call nanosleep with more than 999,999,999
nanoseconds.
Comment out assertion because it uses on EINTR.
Jim Meyering [Sun, 28 Nov 1999 13:35:00 +0000 (13:35 +0000)]
Rewrite to use nanosleep (hence, timer stops when sleep is suspended)
and to remove gettimeofday/signal cruft.
Improve overflow checking.
Jim Meyering [Sun, 28 Nov 1999 08:08:51 +0000 (08:08 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Nov 1999 08:00:58 +0000 (08:00 +0000)]
better error checking
add FIXME comments for non-portable constructs
Jim Meyering [Sat, 27 Nov 1999 20:03:05 +0000 (20:03 +0000)]
remove another printf stmt
Jim Meyering [Sat, 27 Nov 1999 20:02:38 +0000 (20:02 +0000)]
remove printf stmts
Jim Meyering [Sat, 27 Nov 1999 20:01:22 +0000 (20:01 +0000)]
fix typos
Jim Meyering [Sat, 27 Nov 1999 20:00:54 +0000 (20:00 +0000)]
Rewrite to allow fractional seconds and to handle SIGCONT.
(main): Rewrite.
(sighandler): New function.
(apply_suffix): New function.
(timeval_subtract): New function.
Jim Meyering [Sat, 27 Nov 1999 17:10:15 +0000 (17:10 +0000)]
(usage): Add elipses to show that sleep allows more than one argument.
Jim Meyering [Sat, 27 Nov 1999 17:04:29 +0000 (17:04 +0000)]
remove brackets around required sleep argument
Jim Meyering [Sat, 27 Nov 1999 15:02:27 +0000 (15:02 +0000)]
(argdecode): Move definition to precede use.
Remove prototype.
Jim Meyering [Sat, 27 Nov 1999 10:15:46 +0000 (10:15 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Nov 1999 10:14:53 +0000 (10:14 +0000)]
Don't set/use MV, etc.
Jim Meyering [Sat, 27 Nov 1999 10:14:24 +0000 (10:14 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Nov 1999 10:14:04 +0000 (10:14 +0000)]
Don't set/use MV, etc.
Jim Meyering [Sat, 27 Nov 1999 10:11:25 +0000 (10:11 +0000)]
Don't set/use RM and MV.
Jim Meyering [Sat, 27 Nov 1999 10:10:02 +0000 (10:10 +0000)]
Don't set/use LS MV MKDIR MKNOD RM TOUCH
Jim Meyering [Sat, 27 Nov 1999 10:08:55 +0000 (10:08 +0000)]
Don't set/use DF or MKDIR.
Jim Meyering [Sat, 27 Nov 1999 10:05:25 +0000 (10:05 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Nov 1999 10:05:11 +0000 (10:05 +0000)]
(TESTS): Add partition-perm.
Jim Meyering [Sat, 27 Nov 1999 09:01:22 +0000 (09:01 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Nov 1999 09:01:05 +0000 (09:01 +0000)]
*** empty log message ***
Jim Meyering [Fri, 26 Nov 1999 16:50:33 +0000 (16:50 +0000)]
*** empty log message ***
Jim Meyering [Fri, 26 Nov 1999 16:50:24 +0000 (16:50 +0000)]
(df_readable): Now returns char const *, not char *.
New arg NEGATIVE.
(ceil_percent): Now returns double, not int.
Be more careful about adding 1 to a wild value.
(show_dev): Don't filter out wild sizes from the underlying operating
system; instead, show them to the user as faithfully as possible.