summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2006-06-07(integer_overflow): New function.Paul Eggert-3/+35
(eval4, eval3): Check for integer overflow.
2006-06-03Make `cp --link --no-dereference' work also on systems where theJim Meyering-1/+16
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-1/+1
From Justin Pryzby.
2006-05-27Support new options: --preserve-root and --no-preserve-root.Jim Meyering-0/+23
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-2/+1
2006-05-20(main): Use FTS_PHYSICAL here, too.Jim Meyering-1/+1
2006-05-20(main): Rename local, s/symlink_deref_bit/symlink_deref_bits/Jim Meyering-5/+5
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-5/+10
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-1/+1
2006-05-11mv -T DIR EMPTY_DIR no longer failsJim Meyering-8/+0
(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-2/+4
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-13/+8
2006-05-06.Jim Meyering-3/+1
2006-05-03*** empty log message ***Jim Meyering-1/+1
2006-05-03(DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):Jim Meyering-33/+34
Use better macro parameter names: s/basename/key_name/, s/basefunc/key_cmp_func. Fix typo in comment.
2006-05-03(main): On systems with d_type, directories_first onlyJim Meyering-4/+5
implies format_needs_type, not format_needs_stat.
2006-05-03(xstrcoll_df_version, rev_xstrcoll_df_version): Add space after commaJim Meyering-2/+2
in arg list, from Eric Blake.
2006-04-23(sort_type): Rearrange to use as an array index whenJim Meyering-111/+196
choosing sort function; added new sort_numtypes member for compile-time check. (time_type): Add new time_numtypes member for compile-time check. (directories_first): New global variable. (GROUP_DIRECTORIES_FIRST_OPTION): New enum. (long_options): Add --directories-first. (main): Support new option. (is_directory): New function. (extract_dirs_from_files): Use it. (DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS) (LIST_SORTFUNCTION_VARIANTS): New macros. (sort_functions): New global variable. (sort_files): Use it. (usage): Document new option.
2006-04-19(fillrand): The assertion was way too weak, due toPaul Eggert-12/+7
what must be a typo. Strengthen it to its intended value. (dopass): Don't use alloca; it's not worth the aggravation here, since it's used only to get a page-aligned buffer, and page alignment doesn't buy us much here. I'm suspicious that alloca causes problems on some hosts, due to a recent bug report by Adam Waltman.
2006-04-17(human_access): Use (new) filemodestring rather thanPaul Eggert-2/+2
(old) mode_string, so that we get more file types right, at least in theory. Adjust to filemode changes.
2006-04-17(HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.Paul Eggert-14/+7
(print_long_format): Use (new) filemodestring rather than (old) mode_string, so that we get more file types right, at least in theory. Adjust to filemode changes.
2006-04-17(describe_change): Adjust to filemode changes.Paul Eggert-8/+8
2006-04-17(main) [DEFAULT_IGNORE_FILE]: Remove code to use a defaultJim Meyering-7/+0
ignore file. This has never been enabled. Reported by Eric Blake.
2006-04-12(sync) [!HAVE_SYNC]: New macro.Paul Eggert-0/+4
2006-04-12(USE_STATVFS): New macro.Paul Eggert-14/+15
Include <sys/statvfs.h> and use statvfs only if USE_STATVFS. (NAMEMAX_FORMAT): define a bit more clearly, now that the statvfs-using code is a bit more regular.
2006-04-12(main) [! HAVE_SETGROUPS]: Don't call setgroups.Paul Eggert-1/+3
2006-04-12(linkfunc): Remove. This method ran into a compiler/linkerPaul Eggert-11/+4
bug in Interix. Just call symlink or link directly. All uses changed.
2006-04-12Clear the RE_NO_EMPTY_RANGES re syntax option, as this is a less intrusivePaul Eggert-3/+6
change from the old (Emacs) behavior, and POSIX allows us to treat [z-a] as an empty range.
2006-04-12(docolon): Set re_syntax_options to a value that is compatible withPaul Eggert-16/+10
what POSIX requires. Also, don't let anchors match newline; this fixes an incompatibility with tradition and with POSIX. Don't warn about leading ^. POSIX says it is unspecified whether ^ is a special character, which means that implementations can either treat it as special or not, but either way a warning is not allowed (unless the regexp is otherwise invalid). Instead, anchor the expression but treat ^ as an anchor; this is the traditional behavior (e.g., Solaris 10). (eval4, eval3, eval2): Treat non-numeric args, division by zero, and the like as invalid expressions (exit status 2), not as failure of 'expr' (exit status 3). This is more consistent with how Solaris behaves.
2006-04-12(build_type_arg): Set re_syntax_options to a value that is compatiblePaul Eggert-0/+1
with what POSIX requires.
2006-04-12(extract_regexp): Set re_syntax_options to aPaul Eggert-0/+1
value that is compatible with what POSIX requires.
2006-04-11(compiled_separator_fastmap): New ver.Paul Eggert-4/+5
(main): Use it. Don't bother allocating a buffer.
2006-04-11(context_regex_string, word_regex_string): Remove.Paul Eggert-48/+46
(context_regex, word_regex): New vars, replacing the above. All uses changed. (struct regex_data): New type. (compile_regex): Renamed from alloc_and_compile_regex, since we no longer allocate storage. Arg is now a struct regex_data *, not a const char *. All uses changed. Don't allocate the fastmap; instead, take it from the caller. Don't convert size_t to int, to avoid arithmetic overflow problems. Don't bother freeing storage afterwards; it's not worth the aggravation.
2006-04-11(body_fastmap, header_fastmap, footer_fastmap):Paul Eggert-12/+14
New vars. (build_type_arg): New fastmap arg. All uses changed. Don't bother allocating a buffer, but set a fastmap.
2006-04-11(docolon): Allocate and use a fastmap.Paul Eggert-9/+7
Don't bother allocating a buffer.
2006-04-11Update copyright year.Paul Eggert-1/+1
2006-04-11(struct control): Put re_compiled member at thePaul Eggert-11/+11
end, since it's large. Change regexpr member from char * to bool; all uses changed. Add new member fastmap. (extract_regexp): regexp arg is now char const *, not char *. Don't bother duplicating the regular expression; it's not needed. Set fastmap from new fastmap member. Don't bother allocating a buffer, as the regexp code does a better job than we do.
2006-03-30(iwrite): Remove assignment without effect.Jim Meyering-1/+0
Reported by Felix Rauch Valenti.
2006-03-28(usage): Remove mention of --copyright/-C.Jim Meyering-26/+7
(main): Alias --copyright to --version plus a deprecation warning.
2006-03-27.Jim Meyering-2/+5
2006-03-27(uptime_LDADD): Add $(POW_LIB), for uptime's use of strtod.Jim Meyering-1/+2
Tiny patch from Nickolai Zeldovich.
2006-03-26.Jim Meyering-3/+4
2006-03-26(log_su, run_shell): Use new last_component, in place of base_name.Jim Meyering-4/+4
2006-03-26(next_file_name): Use new last_component, in place of base_name.Jim Meyering-2/+2
2006-03-26(wipename): Use new last_component, in place of base_name.Jim Meyering-2/+2
2006-03-26(rm_1): Use new last_component, in place of base_name.Jim Meyering-1/+1
2006-03-26(target_directory_operand, movefile): Use new last_component, in place of ↵Jim Meyering-2/+2
base_name.
2006-03-26(basename_is_dot_or_dotdot): Use new last_component, in place of base_name.Jim Meyering-1/+1
2006-03-26(target_directory_operand, main): Use new last_component, in place of base_name.Jim Meyering-3/+4
2006-03-26(target_directory_operand, install_file_in_dir): Use new last_component, in ↵Jim Meyering-2/+2
place of base_name.