Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Use putchar, not fputs, to output a single character.
|
|
This reverts the two changes of 2003-02-21.
|
|
This reverts the change of 2003-02-19.
|
|
integer with zero, to avoid a warning from Intel's ecc.
|
|
Otherwise, for files or totals that are too big, numbers would
be truncated. Patch mostly by Michael Stone.
|
|
|
|
|
|
|
|
|
|
the offending file, not just the basename.
|
|
accurate diagnostic when failing to remove a file owned by some other
user. Reported by Ivo Timmermans via Michael Stone.
This fixes Debian bug# 178471.
|
|
failure to create a hard link, do not remove the entry associating
the source dev/ino with the destination file name.
|
|
header string. Instead, put `Filesystem' and `Type' headers in the
same string, so translators can use horizontal space as needed.
|
|
existing destination file, unlink that file and try again.
|
|
|
|
|
|
(main): Invoke `run' through a macro that (when possible) runs it
with a large, mmap'd stack.
|
|
(enum) [APPARENT_SIZE_OPTION]: New member.
(long_options): Add it.
(usage): Describe it.
(main): Handle it.
['b']: Set apparent_size.
|
|
(print_only_size): Reflect the fact that we're printing byte counts,
not ST_NBLOCKSIZE-byte-block counts.
(print_size): Call print_only_size rather than duplicating its code.
(process_file): Accumulate byte counts, rather than block counts.
|
|
--separate-dirs (-S).
|
|
one `sum' array, and change how -S works back to the way it was
before 2003-01-31. Patch by Bruno Haible.
|
|
|
|
(usage): Describe it.
|
|
|
|
Report correct usage for directories, not 0.
(process_file): Return for `file_type == FTW_DPRE'
_before_ recording the dev/ino of a directory.
|
|
listed mount point under `Filesystem'. Before, for an unmounted
block- or character-special file argument, it would display the
command-line argument instead.
(show_disk): Return a value indicating whether
there was a match. Don't try to find a mount point here.
(show_entry): If show_disk doesn't find a match, call show_point.
|
|
(du_files): Add prototype with ATTRIBUTE_NORETURN.
Exit from this function, not from...
(main): ...here.
Instead, if possible, invoke du_files through a macro that
runs it with a large, mmap'd stack.
|
|
use FILENUM instead of `SIDE' and say what FILENUM means.
|
|
string of spaces matching the length of the English `...Type' header,
output the right number of spaces to match the selected translation.
Reported by Yann Dirson and Jean Charles Delepine as Debian bug 131113.
|
|
(bytes_split, lines_split, line_bytes_split): Use full_read,
not safe_read. The way split was using the latter, a short read
could cause split to terminate before EOF.
(bytes_split): Remove unnecessary `else' after break.
(lines_split): Likewise. and correct misleading indentation.
|
|
|
|
(cksum): Exit the loop upon EOF, too.
Patch by Michael Bacarella.
|
|
RUN_WITH_BIG_STACK_*
|
|
Remove declaration of euidaccess.
|
|
in cast to avoid warning from icc. Reported by Alexandre Duret-Lutz.
|
|
|
|
Include euidaccess.h.
(eaccess): Rewrite function to set the real uid and gid temporarily
to the effective uid and gid, then invoke 'access', and then set the
real uid and gid back. On systems that lack setreuid or setregid,
fall back on the kludges in euidaccess. Before, it would not work
for e.g., files with ACLs, files that were marked immutable,
or on file systems mounted read-only.
|
|
when necessary) by the wrapper in lib/stat.c.
|
|
|
|
|
|
|
|
Fix memory allocation arithmetic.
|
|
or for files whose dev/inode we've already seen.
|
|
|
|
the name of the file system on which the file resides, usually `/'.
Before, it would leave the `Mounted on' field blank.
(show_disk): Add parameter: STATP.
If we don't find a matching device name, then resort to calling
find_mount_point.
|
|
|