Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering 5ac2b8e39b . 1999-12-09 16:42:00 +00:00
Jim Meyering 5214179c29 . 1999-12-09 16:38:32 +00:00
Jim Meyering e8ff25dd70 *** empty log message *** 1999-12-09 15:55:11 +00:00
Jim Meyering fc8e7363d2 Require that File::Compare be available, too.
Too many systems seem to lack it.
1999-12-09 15:54:59 +00:00
Jim Meyering 022194de49 Add checks for most of the cpp macros tested in GNU's strftime.c.
Prompted by a patch from Paul Eggert.
1999-12-09 15:54:20 +00:00
Jim Meyering eb06f705a1 Use 1>&2 rather than `1<&-'.
Suggestion from Volker Borchert.
1999-12-09 15:52:49 +00:00
Jim Meyering aeabe74421 (IGNORE_FAIL_ON_NON_EMPTY_OPTION): Likewise. 1999-12-09 15:52:09 +00:00
Jim Meyering 46b6c26e4f (BLOCK_SIZE_OPTION, EXCLUDE_OPTION, MAX_DEPTH_OPTION):
Define these and use them instead of `CHAR_MAX + n'.
1999-12-09 15:46:39 +00:00
Jim Meyering 919f2ce3da (BLOCK_SIZE_OPTION, SYNC_OPTION, NO_SYNC_OPTION): Define
these and use them instead of `CHAR_MAX + n'.
1999-12-09 15:43:41 +00:00
Jim Meyering 6cbabe63d4 (anonymous enum): Define TIME_OPTION, and ...
(longopts): ...use it here instead of `CHAR_MAX + 1'.
(main): Likewise.
1999-12-09 15:39:38 +00:00
Jim Meyering 1aa50fd72e (enum): Remove useless CHAR_MAX + 2 1999-12-09 15:35:41 +00:00
Jim Meyering 6845fc7c96 Test more of the framework (touch's -a and -m
options) before running the actual ls test.
1999-12-08 17:05:59 +00:00
Jim Meyering 84339c827f s/test_failure/framework_failure/g 1999-12-08 16:50:22 +00:00
Jim Meyering be3748ddad (TESTS): Add fflush. 1999-12-05 23:31:34 +00:00
Jim Meyering 392a965229 Remove ftp.enst.fr. 1999-12-05 22:59:30 +00:00
Jim Meyering 5cb18377bc *** empty log message *** 1999-12-05 22:36:11 +00:00
Jim Meyering 93c2c18a80 (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.
1999-12-05 22:36:02 +00:00
Jim Meyering dd002c22fd *** empty log message *** 1999-12-05 16:45:27 +00:00
Jim Meyering f447e97462 . 1999-12-05 16:39:39 +00:00
Jim Meyering 3abc240e82 *** empty log message *** FILEUTILS-4_0k 1999-12-05 15:14:18 +00:00
Jim Meyering ff8f4dde22 *** empty log message *** 1999-12-05 15:13:40 +00:00
Jim Meyering f880990daf 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.
1999-12-05 15:13:21 +00:00
Jim Meyering 7306126ef0 *** empty log message *** 1999-12-04 17:46:39 +00:00
Jim Meyering 305e2306be . 1999-12-04 17:46:06 +00:00
Jim Meyering 2b10e67d59 (TESTS): Add to-symlink. 1999-12-04 17:45:45 +00:00
Jim Meyering dc74b3a1e7 Make sure that the copying code used in an inter-partition
move unlinks a destination symlink before opening it.
1999-12-04 17:44:59 +00:00
Jim Meyering 2f21a269fe *** empty log message *** 1999-12-04 17:34:39 +00:00
Jim Meyering 69408d229e *** empty log message *** 1999-12-04 17:34:05 +00:00
Jim Meyering f05badd230 (trap): Be careful to close $actual before
removing the containing directory.  Otherwise, on some systems rmdir
fails to remove the containing directory.
1999-12-04 17:33:49 +00:00
Jim Meyering 6763fa97d2 *** empty log message *** 1999-12-04 17:31:29 +00:00
Jim Meyering b1b10e1e40 List --full-time dates upon failure. 1999-12-04 17:31:23 +00:00
Jim Meyering 5810f4bee5 . 1999-12-04 17:30:24 +00:00
Jim Meyering 91b5e686d5 Adapt to reflect this change in behavior.
Make sure the VERSION_CONTROL envvar is not set.
Run diff if comparison fails.
1999-12-04 17:30:16 +00:00
Jim Meyering 8c096b86ef Use mv, ls, rm, not $MV, $LS, $RM. 1999-12-04 17:24:19 +00:00
Jim Meyering 698fd02798 (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.
1999-12-04 17:21:47 +00:00
Jim Meyering 28bac510d9 *** empty log message *** 1999-12-04 17:21:06 +00:00
Jim Meyering 2413369d22 *** empty log message *** 1999-12-04 17:05:27 +00:00
Jim Meyering 091109470c 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.
1999-12-04 17:03:43 +00:00
Jim Meyering 9481a7bd36 *** empty log message *** 1999-12-04 16:56:07 +00:00
Jim Meyering 2be3dc067a (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.
1999-12-04 16:55:27 +00:00
Jim Meyering c4542a7e8c (usage): Shorten help for --show-control-chars. 1999-11-30 21:09:35 +00:00
Jim Meyering 6c9e0d702a *** empty log message *** 1999-11-30 16:09:58 +00:00
Jim Meyering 062906c83a Don't include math.h or float.h.
Don't use DBL_MAX.
Use TIME_T_MAX instead.
1999-11-28 19:59:18 +00:00
Jim Meyering 2c3fa56cef *** empty log message *** 1999-11-28 19:57:54 +00:00
Jim Meyering 346edb7361 *** empty log message *** 1999-11-28 19:56:38 +00:00
Jim Meyering b9c91d0570 don't include assert.h 1999-11-28 14:04:12 +00:00
Jim Meyering e20a9b89d2 Round more carefully so we never call nanosleep with more than 999,999,999
nanoseconds.
Comment out assertion because it uses on EINTR.
1999-11-28 14:03:43 +00:00
Jim Meyering 0baa523154 Rewrite to use nanosleep (hence, timer stops when sleep is suspended)
and to remove gettimeofday/signal cruft.
Improve overflow checking.
1999-11-28 13:35:00 +00:00
Jim Meyering d5f7b2a2db *** empty log message *** 1999-11-28 08:08:51 +00:00
Jim Meyering 4c05896b20 better error checking
add FIXME comments for non-portable constructs
1999-11-28 08:00:58 +00:00