summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-09-29.Jim Meyering
2005-09-29.Jim Meyering
2005-09-29.Jim Meyering
2005-09-28* src/system.h (LONGEST_MODIFIER): Use ULONG_MAX_LT_ULLONG_MAXPaul Eggert
instead of ULLONG_MAX, as the latter doesn't work with GCC 2.7.2.1.
2005-09-26(touch): Handle "touch -c - >&-" by checking for EBADFPaul Eggert
and ENOSYS. Do not pass "-" to futimens; pass NULL instead. If close (STDIN_FILENO) fails, report the error separately instead of letting the 'close' pollute errno.
2005-09-25(touch): "touch -" now touches standard output.Paul Eggert
(usage): Document this.
2005-09-25(HAVE_FCHMOD, HAVE_FCHOWN): Define to 0 if not defined.Paul Eggert
(copy_reg): New args CHOWN_SUCCEDED and DST_SB. All callers changed. Add a "goto close_src_and_dst_desc;" that was missing in the previous patch. (copy_reg) [HAVE_FCHOWN]: Prefer fchown to chown. (copy_reg) [HAVE_FCHMOD]: Prefer fchmod to chmod. (copy_internal): Don't invoke chown if fchown worked, and likewise for chmod and fchmod.
2005-09-24Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H', for consistency with ↵Jim Meyering
gnulib.
2005-09-23(install_file_in_file): Be more conservative about the previous patch:Paul Eggert
set time stamps on all non-regular files.
2005-09-23(change_timestamps): First arg is sourcePaul Eggert
struct stat, not file name. All uses changed. (install_file_in_file): Stat the source file if necessary. Don't try to change time stamps if copy_file did it.
2005-09-23(copy_reg): Preserve time stamps ifPaul Eggert
x->preserve_timestamps is set, using futimens so that we needn't resolve the path again. (copy_internal): Don't preserve time stamps if copy_reg did it already.
2005-09-23Don't include utime.h; not needed.Paul Eggert
(struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed.
2005-09-23.Jim Meyering
2005-09-23Use `verify' to ensure that our hard-codedJim Meyering
bytes_to_*_digits arrays are long enough. Of course, 17+-byte integral types aren't on the near horizon, but just in case... (MAX_INTEGRAL_TYPE_SIZE): Move definition to precede new first use. (bytes_to_oct_digits, bytes_to_signed_dec_digits): (bytes_to_unsigned_dec_digits, bytes_to_hex_digits): Change base type from `char' to the clearer `unsigned int'.
2005-09-22.Jim Meyering
2005-09-22Regenerate.Paul Eggert
2005-09-22Include canon-host.h rather than declaring canon_host ourselves.Paul Eggert
2005-09-22Include canon-host.h rather than declaringPaul Eggert
canon_host ourselves.
2005-09-22Include strcase.h.Paul Eggert
2005-09-22(EEXIST, ENOTEMPTY): Remove unused macros.Paul Eggert
2005-09-22(X2NREALLOC, X2REALLOC): Moved here fromPaul Eggert
../lib/xalloc.h, with args properly parenthesized, and using verify_expr rather than the old VERIFY_EXPR.
2005-09-21.Jim Meyering
2005-09-21.Jim Meyering
2005-09-20(write_protected_non_symlink): Change comment to agree with the code.Jim Meyering
2005-09-19(remove_dir): Return RM_ERROR, not `1',Jim Meyering
when attempting to remove `/' with --preserve-root.
2005-09-19(remove_cwd_entries): Syntactic tweak: move anJim Meyering
assignment out of an if-expression.
2005-09-17(usage): Request that additions be sent to bug-coreutils@gnu.org, too.Jim Meyering
2005-09-16(main): When failing to truncate, mention both the seek block countJim Meyering
and the block size, in case the block size is very large.
2005-09-16Include fprintftime.h.Jim Meyering
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
NULL format string.
2005-09-16(show_date): Remove now-spurious braces.Jim Meyering
2005-09-16Regenerate.Paul Eggert
2005-09-16Include stat-time.h, and use its functions instead of the obsoletePaul Eggert
TIMESPEC_NS macro.
2005-09-16Include stat-time.h, and use its functions instead of the obsoletePaul Eggert
TIMESPEC_NS macro. (get_mtime): Renamed from age_of. All uses changed.
2005-09-16Include fprintftime.h.Jim Meyering
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
they are unknown.
2005-09-13* src/dd.c: Detect some very unlikely buffer overflows.Paul Eggert
(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
2005-09-13(TIME_SPEC_DATE): No longer needs to be nonzero, soPaul Eggert
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
description, so that help2man doesn't mangle it.
2005-09-10.Jim Meyering
2005-09-10.Jim Meyering
2005-09-10csplit could produce corrupt output, given input lines longer than 8KBJim Meyering
(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
2005-09-09(tac_seekable): Store match length in regoff_t, not int. Assume thatPaul Eggert
negative return values less than -2 represent regoff_t overflow.
2005-09-09(SKIP_SOMETHING, find_occurs_in_text):Paul Eggert
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
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
2005-09-09(process_regexp): Store match length in regoff_t,Paul Eggert
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