summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2006-07-09(is_blank): Remove; no longer needed. All usesPaul Eggert
replaced by isblank (to_uchar (...)).
2006-07-09(unexpand): Don't assume that isprint etc. returnPaul Eggert
booleans (needed for pre-C99 hosts).
2006-07-09(is_char_class_member): Don't assume that isprint etc. returnPaul Eggert
booleans (needed for pre-C99 hosts).
2006-07-09(initialize_regex, fix_output_parameters): Don't assume that isprintPaul Eggert
etc. return booleans (needed for pre-C99 hosts). (SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS): (copy_unescaped_string): Don't assume char is unsigned.
2006-07-09(check_punctuation): Don't assume that isprint etc. returnPaul Eggert
booleans (needed for pre-C99 hosts).
2006-07-09(expand): Don't assume that isprint etc. returnPaul Eggert
booleans (needed for pre-C99 hosts).
2006-07-09(inittables): Use toupper rather thanPaul Eggert
islower followed by toupper; it's simpler and typically faster now that we assume at least C89 semantics. Similarly for tolower.
2006-07-09(apply_translations): Use toupper rather thanPaul Eggert
islower followed by toupper; it's simpler and typically faster now that we assume at least C89 semantics. Similarly for tolower.
2006-07-09(_D_EXACT_NAMELEN): Renamed from NLENGTH, forPaul Eggert
convenience on GNU systems. All uses changed. Don't bother looking for any dirent.h substitute other than ndir.h. (D_INO): Remove unnecessary parentheses. (IN_CTYPE_DOMAIN, ISGRAPH, ISPRINT, ISALNUM, ISALPHA): (ISCNTRL, ISLOWER, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT): (ISDIGIT_LOCALE, TOLOWER, TOUPPER): Remove. All uses changed to ctype.h equivalents. (isblank): Renamed from ISBLANK. Check for HAVE_DECL_ISBLANK too. All uses changed.
2006-07-08* src/dd.c (skip): Remove one of two adjacent "the"s in a comment.Jim Meyering
2006-07-05* src/ls.c (usage): Correct the description of -G: it is usefulJim Meyering
only in a long listing. Reported by Martin Pool in <https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.
2006-07-05* src/copy.c (copy_internal): Don't work around old NFS clients likeJim Meyering
SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and ENOTEMPTY upon failed rename. Otherwise, we risk misinterpreting a banal failure as a recursive move-into-self failure. Reported by Florent Bayle in <http://bugs.debian.org/376749>.
2006-07-05Regenerate, to remove fuzz.Jim Meyering
2006-07-03Plug another unusual leak.Jim Meyering
(AD_mark_helper): Free malloc'd filename if hash_insert says that string is already in the hash table.
2006-07-03The dev/inode of the topmost directory in each hierarchy were notJim Meyering
being recorded. * src/remove.c (remove_cwd_entries): Don't call cycle_check here. (AD_push): Call it from here instead.
2006-07-03Fix two small leaks.Jim Meyering
* src/remove.c (AD_stack_clear): New function. (rm_1): Use it. (AD_pop_and_chdir): Free *prev_dir just before longjmp.
2006-07-02Include <stdint.h> unconditionally, since wePaul Eggert
now assume the stdint module.
2006-07-01(main): With no operand, 'tail -f' now silently ignores the '-f'Paul Eggert
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
2006-07-01* src/ln.c (do_link): Use new, shorter URL, for ag-review link.Jim Meyering
2006-07-01(seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).Paul Eggert
2006-07-01Don't include <math.h> or <xstrtol.h>; no longer needed.Paul Eggert
(isfinite) [!defined isfinite]: New macro. (separator, terminator): Now points to const. (first, step, last): Remove. (usage): Update to match new behavior. (struct operand, operand): New type. (scan_arg): Renamed from scan_double_arg, since we no longer use double. All uses changed. Compute and return a value of type operand, not double. (long_double_format): Renamed from valid_format, and now returns a new format with an "L" added if needed, if the original format was valid. Allow %a, %A, %E, %F, and %G formats. (print_numbers): Take numeric values as args rather than from globals. Print long double, not double. (get_width_format): Remove. (get_default_format): New function. (main): Implement new way of calculating default format. Don't worry about locale's representation of the decimal point, since the arguments are always processed in the C locale.
2006-06-28* src/sort.c (main): Support obsolete usages like "sort +1 -2" even whenPaul Eggert
conforming to POSIX 1003.1-2001, since this is a pure extension to POSIX.
2006-06-28* src/system.h (CLOSEDIR): Remove. All uses changed to closedir.Paul Eggert
2006-06-28* src/c99-to-c89.diff: Regenerate, to remove fuzz.Jim Meyering
2006-06-27.PHONY: sc_tight_scopeJim Meyering
2006-06-26Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon anyJim Meyering
fd_to_subdirp failure, not just when errno == EACCES. * src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not rmdir, here, even though rmdir may happen to be adequate.
2006-06-26* NEWS: rm no longer fails to remove an empty, unreadable directoryJim Meyering
* src/remove.c (remove_cwd_entries): If we can't open a directory, and the failure is not being ignored, try to remove the directory with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty. Problem report and test case from Paul Eggert in <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>. * tests/rm/empty-inacc: New test, for the above.
2006-06-26Avoid a segfault for wc --files0=- < /dev/null.Jim Meyering
* src/wc.c (compute_number_width): Return right away if nfiles == 0.
2006-06-25tweak grammar in commentJim Meyering
2006-06-25* NEWS: wc accepts a new option --files0-from=FILE, where FILEJim Meyering
contains a list of NUL-separated file names. * src/wc.c: Include "readtokens.h". (usage): Describe the new option, and adjust the `Usage': with this option, no FILE may be specified on the command line. (main): Handle the new option. * tests/misc/wc-files0: New tests, for the above. * tests/misc/wc-files0-from: Likewise. * tests/misc/Makefile.am (TESTS): Add wc-files0.
2006-06-24* src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.Jim Meyering
2006-06-22* src/tee.c (tee_files): Rename from tee, to avoid conflict withJim Meyering
the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
2006-06-08Ensure that cat works with any of the options, -A -v -e -E -T,Jim Meyering
when applied to files in /proc and /sys, even when the FIONREAD ioctl produces nonsensical results. Before this change, cat would produce no output (or truncated output), for some linux kernels. * src/cat.c (write_pending): New function, factored out of cat. (cat): Also interpret a negative ioctl/FIONREAD count as indicating that there are bytes to read. Some versions of linux-2.6.16 do that. Write any pending output before returning. Reported by Dan Jacobson in <http://bugs.debian.org/370583>. * NEWS: Mention this bug fix. * tests/misc/cat-proc: New file. Test for the above. * tests/misc/Makefile.am (TESTS): Add cat-proc.
2006-06-08(eval4): Detect overflow properly when multiplying INTMAX_MIN * -1.Paul Eggert
2006-06-07Don't claim x86 behavior is erroneous in a comment.Paul Eggert
2006-06-07(integer_overflow): New function.Paul Eggert
(eval4, eval3): Check for integer overflow.
2006-06-03Make `cp --link --no-dereference' work also on systems where theJim Meyering
link system call cannot create a hard link to a symbolic link. (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use the link syscall on a symlink when it would do the wrong thing. Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
2006-05-30(usage): Add `v' to the list of sorting-related options.Jim Meyering
From Justin Pryzby.
2006-05-27Support new options: --preserve-root and --no-preserve-root.Jim Meyering
Somehow this program was skipped when those options were added to chown, chmod, and rm. Reported by vaqflabuopac@spammotel.com in <http://bugs.debian.org/365656>.
2006-05-25(usage): Remove mention of --seed.Paul Eggert
2006-05-20(main): Use FTS_PHYSICAL here, too.Jim Meyering
2006-05-20(main): Rename local, s/symlink_deref_bit/symlink_deref_bits/Jim Meyering
and arrange for -D to set fts' FTS_PHYSICAL bit as well as FTS_COMFOLLOW. Spotted by Justin Pryzby.
2006-05-19(main): Don't let -D, -L, or -P turn off the internalJim Meyering
FTS_TIGHT_CYCLE_CHECK directory traversal option. Reported by Justin Pryzby in http://bugs.debian.org/367691
2006-05-15(usage): Correct description of -a: s/-dpR/-dpPR/. From Tomas Pospisek.Jim Meyering
2006-05-11mv -T DIR EMPTY_DIR no longer failsJim Meyering
(copy_internal): Don't manually prohibit a move where the destination is an existing directory. Sometimes doing that is valid. Let the rename system call enforce the rules. That is allowed only when the source is a directory and the destination directory (to be replaced) is empty. Reported by Eric Blake.
2006-05-11(copy_internal): Don't explicitly unlink the destinationJim Meyering
when moving a symlink into the place of an existing non-directory. Reported by Joshua Hudson.
2006-05-07Adjust to reflect new offsets.Jim Meyering
2006-05-06.Jim Meyering
2006-05-03*** empty log message ***Jim Meyering
2006-05-03(DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):Jim Meyering
Use better macro parameter names: s/basename/key_name/, s/basefunc/key_cmp_func. Fix typo in comment.