Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
(path-concat.h): Include.
(show_point): If HAVE_REALPATH or HAVE_RESOLVEPATH is defined,
find the real absolute path for PATH, and use that to find the
mount point.
(show_point): Prefer non-dummy entries in shortcuts, too.
Disable bogus mount dirs instead of restatting them each time.
|
|
when printing "removing directory" message. Failure of rmdir is
handled elsewhere.
|
|
|
|
|
|
(main): Normalize ts_stop.
|
|
[USE_CLOCK_GETTIME]: Include sys/time.h.
(timespec_subtract): New function.
(clock_get_realtime): New function.
(sighandler): Remove function.
(main): Reimplement again, using nanosleep and clock_gettime.
|
|
List new --target-directory=... usage.
Reported by Göran Uddeborg
|
|
|
|
(show_dev): Avoid overflow problems when calculating percent.
Do not display negative percents.
|
|
|
|
|
|
[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.
|
|
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.
|
|
prints whatever host information it has, even without --lookup.
|
|
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.
|
|
to sys2.h, which is shared between fileutils, sh-utils, textutils.
* src/system.h: Move them from here...
* src/sys2.h: ... to here.
|
|
if not defined. This was necessary on a NeXT Turbostation running
Mach 3.3. Reported by Nelson H. F. Beebe.
|
|
|
|
Define these and use them instead of `CHAR_MAX + n'.
|
|
these and use them instead of `CHAR_MAX + n'.
|
|
(longopts): ...use it here instead of `CHAR_MAX + 1'.
(main): Likewise.
|
|
|
|
and calling tail_forever. Required only on Solaris2.7 -- on other
systems, using setvbuf to switch to unbufferd mode does the flush.
|
|
(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.
|
|
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.
|
|
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.
|
|
(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.
|
|
|
|
Don't use DBL_MAX.
Use TIME_T_MAX instead.
|
|
|
|
nanoseconds.
Comment out assertion because it uses on EINTR.
|
|
and to remove gettimeofday/signal cruft.
Improve overflow checking.
|
|
|
|
add FIXME comments for non-portable constructs
|
|
|
|
|
|
|
|
(main): Rewrite.
(sighandler): New function.
(apply_suffix): New function.
(timeval_subtract): New function.
|
|
|
|
Remove prototype.
|
|
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.
|
|
reuse) that would lead to a failed assertion.
Reported by Ken Pizzini.
(tail_forever): Record errno before using it in call to `error'
which might change it.
(tail_file): Likewise.
|
|
(remove_parents): Use it.
(main): Use it.
|
|
Reported by Tom Tromey.
|
|
(main): Use chmod to set the permissions if bits other than those
of S_IRWXUGO were requested. Reported by Sami Farin.
|
|
of separate valid_fd variable.
|
|
an existing file. This makes it so that touching a read-only
file now works. Also clean up and simplify.
Based on a patch from Chip Salzenberg.
|