Age | Commit message (Collapse) | Author |
|
|
|
when attempting to remove `/' with --preserve-root.
|
|
assignment out of an if-expression.
|
|
|
|
and the block size, in case the block size is very large.
|
|
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use new fprintftime function rather than xanstrftime.
Correct comment: this function no longer handles a NULL format string.
|
|
NULL format string.
|
|
|
|
|
|
TIMESPEC_NS macro.
|
|
TIMESPEC_NS macro.
(get_mtime): Renamed from age_of. All uses changed.
|
|
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use fprintftime rather than xanstrftime.
|
|
they are unknown.
|
|
(INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP): New macros.
(MAX_BLOCKSIZE): Now accepts an arg. All uses changed.
(page_size): New var.
(scanargs, skip, main): Use more-straightforward way to detect overflow.
(dd_copy): Use page_size rather than invoking getpagesize.
Use INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP.
(main): Set page_size.
Avoid a call to stat in the usual case where ftruncate succeeds.
|
|
|
|
remove the "=1".
(TIME_SOEC_HOURS, TIME_SPEC_MINUTES): Must be at end now, so put
them there.
(time_spec_string, time_spec): Hours and minutes must be at
start now, so put them there.
(rfc_2822_format): Now a string constant, not a boolean. All uses
changed.
(iso_8601_format, rfc_format): Remove.
(RFC_3339_OPTION): New constant.
(long_options): Add --rfc-3339.
(usage): Add --rfc-3339. Don't mention --iso-8601.
Mention %:z, %::z, %:::z.
(main): Simplify calculation of 'format'; it was getting too hairy
to follow. Add --rfc-3339.
(show_date): Assume format arg is not NULL, which is the case
now. The default code is moved to 'main'. This simplifies things
and allows the default to be calculated just once.
|
|
description, so that help2man doesn't mangle it.
|
|
|
|
|
|
(load_buffer): Don't read from free'd memory
when handling lines longer than the initial buffer length.
(save_to_hold_area): Don't leak the previous hold_area buffer.
Reported by Tristan Miller and Luke Kendall.
* NEWS: Mention this.
(load_buffer): Avoid integer overflow in buffer
size calculations for very long lines.
|
|
|
|
negative return values less than -2 represent regoff_t overflow.
|
|
Store match length in regoff_t,
not int. Assume that negative return values less than -2
represent regoff_t overflow.
(matcher_error): New function.
(SKIP_SOMETHING, find_occurs_in_text): Use it to report matcher errors.
(alloc_and_compile_regex): No longer any need to worry about
int versus size_t mismatch.
|
|
not int. Assume that negative return values less than -2
represent regoff_t overflow.
(build_type_arg): Check for size_t overflow.
|
|
|
|
not int. Assume that negative return values less than -2
represent regoff_t overflow.
|
|
|
|
the biased nice value that can go negative. This corrects
a discrepancy with POSIX, which states that nice values are
nonnegative.
|
|
|
|
other-writable, and sticky-and-other-writable directories.
(indicator_no[]): Add new symbols.
(indicator_name[]): Add corresponding mode strings.
(color_indicator[]): Add an entry for each new mode string.
(print_color_indicator): Honor new types.
From Mike Frysinger, based on a patch from Fedora.
|
|
other-writable, and sticky-and-other-writable directories.
Document the default colors for the new strings.
From Mike Frysinger, based on a patch from Fedora.
|
|
other-writable, and sticky-and-other-writable directories.
(slack_codes): Add new dircolors mode names.
(ls_codes): Add corresponding two-letter ls mode strings.
From Mike Frysinger, based on a patch from Fedora.
|
|
|
|
|
|
|
|
(diagnose_leading_hyphen): New function.
(main): Use it.
|
|
today's change). It doesn't cause a problem after all, since
--exclude-from=- is always handled before --files0-from=F.
|
|
That change (to reopen stdin on F for --files0-from=F) made it so
--exclude-from=- and --files0-from=F would not work together.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
encounters an existing destination file, and gets an affirmative
response, then first try to unlink the destination file rather
than simply failing. Suggestion from Karl Berry.
|
|
parameter and associated assertion. Adjust all callers.
|
|
|
|
(tot_dui): Remove unnecessary (and too-short) initializer list.
|
|
spaces between each option and the corresponding description -- this
lets help2man format entries properly. Reported by Edward Welbourne.
|