Jim Meyering
a98f67970e
(usage): Use putchar, not fputs, to output a single character.
2003-03-07 23:22:14 +00:00
Jim Meyering
aec039a4c1
(output_one_tex_line, output_one_dumb_line):
...
Use putchar, not fputs, to output a single character.
2003-03-07 23:21:45 +00:00
Jim Meyering
2b1a18e682
Remove everything associated with mmap-stack.c.
...
This reverts the two changes of 2003-02-21.
2003-03-07 20:01:35 +00:00
Jim Meyering
6d1bd5a97d
Remove everything associated with mmap-stack.c.
...
This reverts the change of 2003-02-19.
2003-03-07 19:47:18 +00:00
Jim Meyering
57bdc54b21
(print_esc): Remove pointless comparison of unsigned
...
integer with zero, to avoid a warning from Intel's ecc.
2003-03-05 17:44:08 +00:00
Jim Meyering
64baf18b09
(process_file): Sizes must all be of type uintmax_t.
...
Otherwise, for files or totals that are too big, numbers would
be truncated. Patch mostly by Michael Stone.
2003-03-05 06:35:18 +00:00
Jim Meyering
47fa65c648
(MAX_N_DESCRIPTORS): Use 3 * UTILS_OPEN_MAX / 4.
2003-03-04 23:02:08 +00:00
Jim Meyering
b4f567deb9
(usage): Capitalize consistently.
2003-03-04 22:22:19 +00:00
Jim Meyering
e628a56597
(AD_pop_and_chdir): Call error here, now that restore_cwd no longer does it.
2003-03-04 21:30:27 +00:00
Jim Meyering
5ef70ce637
(find_mount_point): Call error here, now that restore_cwd no longer does it.
2003-03-04 21:29:56 +00:00
Jim Meyering
4756c070ad
(remove_cwd_entries): Include the full filename of
...
the offending file, not just the basename.
2003-03-03 20:03:43 +00:00
Jim Meyering
1678b8382e
(remove_cwd_entries) [!ROOT_CAN_UNLINK_DIRS]: Give an
...
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.
2003-03-03 07:55:33 +00:00
Jim Meyering
8c0f326660
(copy_internal) [un_backup]: When recovering from a
...
failure to create a hard link, do not remove the entry associating
the source dev/ino with the destination file name.
2003-03-02 06:09:28 +00:00
Jim Meyering
aa1ae08fc5
(print_header): Don't embed spaces in a separate `Type'
...
header string. Instead, put `Filesystem' and `Type' headers in the
same string, so translators can use horizontal space as needed.
2003-03-01 21:20:57 +00:00
Jim Meyering
a1d2e330ec
(copy_internal): When link fails because of an
...
existing destination file, unlink that file and try again.
2003-02-28 21:36:18 +00:00
Jim Meyering
d15cfc1025
.
2003-02-21 12:27:57 +00:00
Jim Meyering
fc5797807e
(usage): Tweak wording of %B description.
2003-02-21 12:23:48 +00:00
Jim Meyering
4d34fabc8d
Include "mmap-stack.h".
...
(main): Invoke `run' through a macro that (when possible) runs it
with a large, mmap'd stack.
2003-02-21 10:41:27 +00:00
Jim Meyering
6fe8f2a831
New option: --apparent-size.
...
(enum) [APPARENT_SIZE_OPTION]: New member.
(long_options): Add it.
(usage): Describe it.
(main): Handle it.
['b']: Set apparent_size.
2003-02-21 08:30:18 +00:00
Jim Meyering
f1f8ca7ddc
(apparent_size): New global.
...
(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.
2003-02-21 07:47:06 +00:00
Jim Meyering
12508c923f
(process_file): Always reset size_to_propagate_to_parent for
...
--separate-dirs (-S).
2003-02-21 07:15:16 +00:00
Jim Meyering
eb63743d48
(process_file): Reorganize the code to use only
...
one `sum' array, and change how -S works back to the way it was
before 2003-01-31. Patch by Bruno Haible.
2003-02-20 23:13:11 +00:00
Jim Meyering
44e80d26cb
(usage) [%b]: Refer to %B.
2003-02-20 19:11:02 +00:00
Jim Meyering
409e7dd0b6
(print_stat): New format: %B (to print ST_NBLOCKSIZE).
...
(usage): Describe it.
2003-02-20 19:07:55 +00:00
Jim Meyering
4ebc314f18
.
2003-02-20 19:05:38 +00:00
Jim Meyering
5c629d9ef4
(process_file): Set info->skip before any possible return.
...
Report correct usage for directories, not 0.
(process_file): Return for `file_type == FTW_DPRE'
_before_ recording the dev/ino of a directory.
2003-02-20 15:03:22 +00:00
Jim Meyering
fca1c1173c
Now, df always displays the device file name corresponding to the
...
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.
2003-02-20 10:37:14 +00:00
Jim Meyering
ac823e21c0
Include "mmap-stack.h".
...
(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.
2003-02-19 22:20:45 +00:00
Jim Meyering
7c9292d5c9
(usage): Change wording in --help output:
...
use FILENUM instead of `SIDE' and say what FILENUM means.
2003-02-19 16:11:39 +00:00
Jim Meyering
e2cd6ba3df
(print_header): Rather than using a hard-coded literal
...
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.
2003-02-19 16:05:07 +00:00
Jim Meyering
23f6d41f94
Include "full-read.h".
...
(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.
2003-02-19 14:28:50 +00:00
Jim Meyering
f3ecf0e5df
upgrade to automake-1.7.2b
2003-02-19 12:55:25 +00:00
Jim Meyering
d2c4a4e44d
cksum would perform an extra read after encountering EOF
...
(cksum): Exit the loop upon EOF, too.
Patch by Michael Bacarella.
2003-02-18 08:05:02 +00:00
Jim Meyering
2bb32c98a5
(run): New function, preparing for use of
...
RUN_WITH_BIG_STACK_*
2003-02-17 08:39:20 +00:00
Jim Meyering
49eda1bead
Include "euidaccess.h".
...
Remove declaration of euidaccess.
2003-02-14 07:41:27 +00:00
Jim Meyering
be6a1bab4f
(portable_chars_only): Remove unnecessary `const'
...
in cast to avoid warning from icc. Reported by Alexandre Duret-Lutz.
2003-02-12 09:20:47 +00:00
Jim Meyering
81b7f5a407
add comments and fix dumb typos
2003-02-10 13:19:00 +00:00
Jim Meyering
c2597b6041
Don't include group-member.h.
...
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.
2003-02-10 09:01:48 +00:00
Jim Meyering
8f69eadada
(test_stat): Remove function. It's job is done (only
...
when necessary) by the wrapper in lib/stat.c.
2003-02-09 08:28:59 +00:00
Jim Meyering
4e94149b49
.
2003-02-08 20:49:00 +00:00
Jim Meyering
905c870f3a
.
2003-02-08 20:00:53 +00:00
Jim Meyering
712c6ceded
Correct now-invalid comment about cycle-detection.
2003-02-08 16:50:00 +00:00
Jim Meyering
adb8e94a33
(print_boottime, print_deadprocs, print_runlevel):
...
Fix memory allocation arithmetic.
2003-02-06 10:22:12 +00:00
Jim Meyering
a47615d2ed
(process_file): Don't return early for excluded files
...
or for files whose dev/inode we've already seen.
2003-02-06 08:14:01 +00:00
Jim Meyering
3c1dbea18f
(show_entry): Update sole use of show_disk.
2003-02-05 07:01:27 +00:00
Jim Meyering
e295f4f388
`df /dev/block-or-char-device-file--not-mounted' now reports
...
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.
2003-02-04 11:48:27 +00:00
Jim Meyering
144418cd9d
(show_disk): Move function to precede find_mount_point.
2003-02-04 10:28:23 +00:00
Jim Meyering
a881942cca
Don't put decl after non-decl.
2003-02-01 22:52:45 +00:00
Jim Meyering
1a26ff6e02
.
2003-02-01 15:21:29 +00:00
Jim Meyering
d606b47598
(MAX_N_DESCRIPTORS): Define.
2003-02-01 15:20:36 +00:00