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
Jim Meyering
ec974f5c39
remove another printf stmt
1999-11-27 20:03:05 +00:00
Jim Meyering
15d2e7a86b
remove printf stmts
1999-11-27 20:02:38 +00:00
Jim Meyering
069610a0f0
fix typos
1999-11-27 20:01:22 +00:00
Jim Meyering
5617251659
Rewrite to allow fractional seconds and to handle SIGCONT.
...
(main): Rewrite.
(sighandler): New function.
(apply_suffix): New function.
(timeval_subtract): New function.
1999-11-27 20:00:54 +00:00
Jim Meyering
398516f242
(usage): Add elipses to show that sleep allows more than one argument.
1999-11-27 17:10:15 +00:00
Jim Meyering
8e1452ffea
remove brackets around required sleep argument
1999-11-27 17:04:29 +00:00
Jim Meyering
6b36a017db
(argdecode): Move definition to precede use.
...
Remove prototype.
1999-11-27 15:02:27 +00:00
Jim Meyering
30d2b031ab
*** empty log message ***
1999-11-27 10:15:46 +00:00
Jim Meyering
f72f631fa0
Don't set/use MV, etc.
1999-11-27 10:14:53 +00:00
Jim Meyering
d10b18f2b9
*** empty log message ***
1999-11-27 10:14:24 +00:00
Jim Meyering
511cd5b6ae
Don't set/use MV, etc.
1999-11-27 10:14:04 +00:00
Jim Meyering
09282a24f6
Don't set/use RM and MV.
1999-11-27 10:11:25 +00:00
Jim Meyering
f36a801a9a
Don't set/use LS MV MKDIR MKNOD RM TOUCH
1999-11-27 10:10:02 +00:00
Jim Meyering
1e219d6b71
Don't set/use DF or MKDIR.
1999-11-27 10:08:55 +00:00
Jim Meyering
2e0f5a2bac
*** empty log message ***
1999-11-27 10:05:25 +00:00
Jim Meyering
9234f12d32
(TESTS): Add partition-perm.
1999-11-27 10:05:11 +00:00
Jim Meyering
bd2102efa4
*** empty log message ***
FILEUTILS-4_0j
1999-11-27 09:01:22 +00:00
Jim Meyering
6550d040a5
*** empty log message ***
1999-11-27 09:01:05 +00:00
Jim Meyering
afdd1c5ca2
*** empty log message ***
1999-11-26 16:50:33 +00:00