summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2005-09-16Include fprintftime.h.Jim Meyering-8/+3
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.
2005-09-16(show_date): Correct comment: this function no longer handles aJim Meyering-3/+1
NULL format string.
2005-09-16(show_date): Remove now-spurious braces.Jim Meyering-8/+7
2005-09-16Regenerate.Paul Eggert-15/+9
2005-09-16Include stat-time.h, and use its functions instead of the obsoletePaul Eggert-102/+79
TIMESPEC_NS macro.
2005-09-16Include stat-time.h, and use its functions instead of the obsoletePaul Eggert-28/+16
TIMESPEC_NS macro. (get_mtime): Renamed from age_of. All uses changed.
2005-09-16Include fprintftime.h.Jim Meyering-8/+3
Don't include strftime.h or xanstrftime.h -- no longer needed. (show_date): Use fprintftime rather than xanstrftime.
2005-09-15(usage, main): uname -a no longer generates the -p and -i outputs ifPaul Eggert-6/+9
they are unknown.
2005-09-13* src/dd.c: Detect some very unlikely buffer overflows.Paul Eggert-35/+45
(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.
2005-09-13(docolon): Add IF_LINT check to avoid GCC warning.Paul Eggert-1/+1
2005-09-13(TIME_SPEC_DATE): No longer needs to be nonzero, soPaul Eggert-125/+151
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.
2005-09-11(usage): Remove leading spaces in 2-lineJim Meyering-2/+2
description, so that help2man doesn't mangle it.
2005-09-10.Jim Meyering-1/+1
2005-09-10.Jim Meyering-1/+8
2005-09-10csplit could produce corrupt output, given input lines longer than 8KBJim Meyering-12/+15
(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.
2005-09-09Regenerate.Paul Eggert-8/+1
2005-09-09(tac_seekable): Store match length in regoff_t, not int. Assume thatPaul Eggert-5/+9
negative return values less than -2 represent regoff_t overflow.
2005-09-09(SKIP_SOMETHING, find_occurs_in_text):Paul Eggert-18/+34
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.
2005-09-09(proc_text): Store match length in regoff_t,Paul Eggert-8/+16
not int. Assume that negative return values less than -2 represent regoff_t overflow. (build_type_arg): Check for size_t overflow.
2005-09-09* src/expr.c (docolon): 64-bit regex fixes.Paul Eggert-5/+8
2005-09-09(process_regexp): Store match length in regoff_t,Paul Eggert-2/+2
not int. Assume that negative return values less than -2 represent regoff_t overflow.
2005-09-09(main): Hoist errno=0 outside the ifdef.Paul Eggert-8/+7
2005-09-08Use the phrase "niceness" instead of "nice value" to describePaul Eggert-16/+16
the biased nice value that can go negative. This corrects a discrepancy with POSIX, which states that nice values are nonnegative.
2005-09-07(time_args): Use NULL in place of 0.Jim Meyering-1/+1
2005-09-05Colorize set-user-ID and set-group-ID files and sticky,Jim Meyering-6/+29
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.
2005-09-05Colorize set-user-ID and set-group-ID files and sticky,Jim Meyering-0/+5
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.
2005-09-05Colorize set-user-ID and set-group-ID files and sticky,Jim Meyering-1/+3
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.
2005-09-05Don't omit comments until there is better documentation.Jim Meyering-1/+0
2005-09-04.Jim Meyering-2/+9
2005-09-01Clarify comment about size bounds.Paul Eggert-2/+2
2005-08-29Include lstat.h, quotearg.h.Paul Eggert-0/+30
(diagnose_leading_hyphen): New function. (main): Use it.
2005-08-27Go ahead and leave the patch in (i.e., revertJim Meyering-5/+2
today's change). It doesn't cause a problem after all, since --exclude-from=- is always handled before --files0-from=F.
2005-08-27Revert the du.c part of the change from 2005-07-02:Jim Meyering-2/+5
That change (to reopen stdin on F for --files0-from=F) made it so --exclude-from=- and --files0-from=F would not work together.
2005-08-23.Jim Meyering-1/+1
2005-08-23Remove unnecessary parens in `#if defined (SYMBOL)' expressions.Jim Meyering-4/+4
2005-08-23Remove unnecessary parens in `#if defined (SYMBOL)' expressions.Jim Meyering-2/+2
2005-08-23Remove unnecessary parens in `#if defined (SYMBOL)' expressions.Jim Meyering-2/+2
2005-08-23Remove unnecessary parens in `#if defined (SYMBOL)' expressions.Jim Meyering-1/+1
2005-08-23Include <float.h> unconditionally.Jim Meyering-3/+1
2005-08-23(print_uptime): Remove unnecessary parens in `#if defined (SYMBOL)' expressions.Jim Meyering-1/+1
2005-08-22(do_link): If ln is invoked with --interactive (-i),Jim Meyering-0/+1
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.
2005-08-22(xwrite_stdout): Rename from xwrite. Remove always-equal-to-STDOUT_FILENOJim Meyering-10/+9
parameter and associated assertion. Adjust all callers.
2005-08-21(main): Declare `target_directory' with const attribute.Jim Meyering-1/+1
2005-08-21(time_style): Add `const' attribute.Jim Meyering-2/+2
(tot_dui): Remove unnecessary (and too-short) initializer list.
2005-08-18(usage) [-b,-t]: Ensure that there are at least twoJim Meyering-2/+2
spaces between each option and the corresponding description -- this lets help2man format entries properly. Reported by Edward Welbourne.
2005-08-17(usage): Fix typo s/POS 2/POS2/.Jim Meyering-1/+1
2005-08-16(show_dev): New arg STAT_FILE. All uses changed.Paul Eggert-7/+13
This sometimes gives better results on networked file systems that do not respect POSIX semantics. Problem reported by Bruno Haible.
2005-08-15Don't print uninitialized data (or anything else) to stdoutJim Meyering-1/+0
upon localtime failure. (show_date): Remove stray `puts (buf);' (debugging?) from the 2004-02-02 change.
2005-08-14(usage): Fix typo s/formated/formatted/ reported by Norbert KieselJim Meyering-1/+1
2005-08-14.Jim Meyering-1/+1