Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
from `int' to `size_t'.
|
|
output line is NUL-terminated rather than newline-terminated.
|
|
|
|
|
|
(main): Make fts use FTS_TIGHT_CYCLE_CHECK.
(main) [DU_DEBUG]: Accept -d option.
|
|
`dired_pos += width; dired_pos++;' rather than one,
`dired_pos += width + 1;' since the latter could conceivably overflow.
(format_group): Likewise.
|
|
|
|
|
|
(format_user_width, format_group_width, unsigned_file_size,
format_group): New functions.
(block_size_width): Renamed from block_size_size.
(inode_number_width, nlink_width, owner_width, group_width,
author_width, major_device_number_width, minor_device_number_width,
file_size_width): New vars.
(clear_files): Initialize them.
(gobble_file): Set them. Don't ceiling block_size_width to 7.
(print_long_file): Use them.
(gobble_file): Use a new local variable 'f' to make the code
smaller and more consistent with other functions.
(format_user): Output to stdout, not to a buffer, so that we
don't have to worry about buffer overrun. Update dired_pos.
(print_long_file): Don't put owner, group, author into buffer;
just print them directly. Don't assume link counts and
major and minor numbers fit into unsigned long int.
From Paul Eggert.
|
|
|
|
|
|
|
|
(parse_options): Update xstrtod call to include new argument, c_strtod.
|
|
(main): Update xstrtod call to include new argument, c_strtod.
|
|
(scan_double_arg): Update xstrtod call to include new argument, c_strtod.
|
|
needed now that we assume C89. Include "c-strtod.h".
(xstrtod): Call c_strtod, not strtod.
|
|
|
|
|
|
on the join fields. Suggestion from Bruce Robertson.
|
|
(dump): Use xnmalloc/free, not alloca.
|
|
(remove_line): Don't return a pointer to data in
a freed buffer. Instead, arrange to free the buffer on the
subsequent call.
|
|
This avoids a warning valgrind about memcpy with overlapping
source and destination.
|
|
|
|
|
|
(chopt_init): Initialize new member.
(change_file_owner): Support rm's new --preserve-root option.
|
|
(remove_cwd_entries): Remove now-obsolete FIXME comment.
(remove_dir): Support rm's new --preserve-root option.
|
|
|
|
|
|
(process_file): Use newly-factored-out ROOT_DEV_INO_CHECK and
ROOT_DEV_INO_WARN macros.
(get_root_dev_ino): Remove function definition, now that it's
been moved to a separate file.
|
|
|
|
|
|
(struct rm_options): Add new member: root_dev_ino.
|
|
(struct Chown_option): Add new member: root_dev_ino.
|
|
|
|
|
|
whether it's leaked or not.
|
|
whether it's leaked or not.
|
|
More generally, resize integer variables to fit use more precisely.
(ADD_RANGE_PAIR): Remove unnecessary parens.
(struct range_pair): Make members to be of type size_t, not unsigned.
(max_range_endpoint, eol_range_start): Now size_t, not unsigned.
(suppress_non_delimited, output_delimiter_specified,
have_read_stdin, print_kth, set_fields): Now bool, nt int.
(delim): Now unsigned char, not int.
(mark_printable_field, is_printable_field, is_range_start_index,
set_fields, set_fields, cut_bytes, cut_fields):
Use size_t, not unsigned, for field and byte counts.
(hash_int): Use uintptr_t, not unsigned, for pointers converted
to integers. This squeezes more info out of them.
(set_fields, cut_bytes, cut_fields, main):
Use bool, not int, for booleans.
(set_fields): Allocate zeroed byte array with xzalloc, not xcalloc.
|
|
|
|
parse_long_options, so that it works even on systems for which
sizeof char* != sizeof int.
|
|
|
|
call to variadic version_etc function, so that it works even on systems
for which sizeof char* != sizeof int.
|
|
call to variadic version_etc function, so that it works even on systems
for which sizeof char* != sizeof int.
|
|
don't mistake this for a real leak.
|
|
|
|
|
|
|