summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-11-04Regenerate.Paul Eggert
2004-11-03Include "vasprintf.h" since we use vasprintf now.Paul Eggert
2004-11-03(check-AUTHORS): Don't assume \? works in a sedPaul Eggert
expression; it's not portable. Problem reported by Albert Chin. Don't invoke a program more than once.
2004-11-03(version): New variable, containing author info,Paul Eggert
for benefit of AUTHORS check. Use it when acting on --version option.
2004-11-03Don't #define and #undef getopt around <stdlib.h>,Paul Eggert
as this breaks the new regime that does "#define getopt rpl_getopt".
2004-11-03quote(...) file names in diagnostics.Jim Meyering
2004-11-03Regenerate.Paul Eggert
2004-10-29 * src/tac.c (tac_file): Remove temporary prototype and move thisJim Meyering
function `down' so that it precedes definition of tac_nonseekable.
2004-10-29`tac /proc/modules' would print nothingJim Meyering
(copy_to_temp): Renamed from save_stdin, since now it copies a general file descriptor, not just stdin. (tac_nonseekable): Renamed/adapted from tac_stdin. (tac_file): Get fd via `open' directly rather than via fopen/fileno, since we never used the stream. Perform "-" to stdin mapping here rather than in main. Determine whether a file is seekable, by trying to `lseek' to its end, and dispatch to tac_seekable or tac_nonseekable accordingly. (main): Rewrite argument handling now that it uses only tac_file. Reported by Harald Dunkel in http://bugs.debian.org/278604.
2004-10-21.Jim Meyering
2004-10-21Correct my patch of 2004-10-18.Jim Meyering
(rm): Destroy the saved_cwd here (via cwd_state), if necessary, not in remove_dir. Otherwise, removing multiple `.'-relative nonempty directories no longer worked.
2004-10-20(usage): Improve description of --prefix.Paul Eggert
Problem reported by Edward Welbourne.
2004-10-18Plug a leak that would cause rm or a cross-device mv to fail whenJim Meyering
operating on too many command-line-specified nonempty directories. (remove_dir): Destroy the `struct saved_cwd' on the top of the stack before returning. This usually closes the file descriptor that was used to return to the original working directory. Reported by Cyril Bouthors in http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/3048
2004-10-18(validate_file_name): Give a more descriptiveJim Meyering
diagnostic when pathconf fails. This also avoids an unwarranted warning from gcc-3.3.5 about a format not being a string literal.
2004-10-18(main): Remove declaration of unused local, optc.Jim Meyering
2004-10-18(main): Remove declaration of unused local, opt.Jim Meyering
2004-10-18(main): Remove declaration of unused local, c.Jim Meyering
2004-10-18(AUTHORS): Add self.Paul Eggert
Change "path" to "file name" whenever possible. Remove usage comment, as it was a duplication of the code or doc. Include <wchar.h> if available. (mbrlen, mbstate_t) [! (HAVE_MBRLEN && HAVE_MBSTATE_T)]: Define. (NEED_PATHCONF_WRAPPER, PATH_MAX, PATH_MAX_FOR, NAME_MAX, pathconf_wrapper, portable_chars, dir_ok): Remove. (NAME_MAX_MINIMUM, PATH_MAX_MINIMUM): New macros. (pathconf, _PC_NAME_MAX, _PC_PATH_MAX): Define if nonexistent. (portable_chars_only): New arg FILELEN. Don't assume ASCII; we might be on an EBCDIC host. Don't assume unibyte locale in diagnostic. (component_start, component_len): New functions. (validate_file_name): Renamed from validate_path. All uses changed. Pretty much a complete rewrite. Don't make copy of file arg. Always append trailing slash to pathconf arg, just in case it's a symlink (this is pure paranoia; we don't know of any hosts where the trailing slash is required). Use size_t instead of long int when possible. Avoid need to call pathconf in most practical cases. Don't use euidaccess several times to test searchability; just use lstat once. Reword diagnostic to put the (often very long) file names last.
2004-10-15(usage): Mention Unicode, and use H for hex digits.Paul Eggert
2004-10-12Add .mpc as an audio suffix, too.Jim Meyering
2004-10-12Add .flac as an audio suffix.Jim Meyering
2004-10-05(ignore_mode): Renamed from ignore, to avoid shadowingPaul Eggert
problems. All uses changed.
2004-10-05remove trailing blanks.Jim Meyering
2004-10-05(NEW, OLD): Remove, partly to avoidPaul Eggert
reference to obsolescent macro XMALLOC. All uses replaced by xmalloc and free.
2004-10-04Regenerate.Paul Eggert
2004-09-28(usage): Clarify: --retry works only with --follow=name.Jim Meyering
Reported by Nik A. Melchior in http://bugs.debian.org/273781.
2004-09-28(format_address_paren): c is optional, so don't output it if it's '\0'.Paul Eggert
2004-09-27.Jim Meyering
2004-09-27Use [[] in place of \[, since cvsu doesn't handle the latter,Jim Meyering
and both cvs and cvsu handle the former.
2004-09-26Add "ls --hide".Paul Eggert
(file_ignored): Renamed from file_interesting, with inverted return value. Accept the file name, not a struct dirent *. All uses changed. Avoid the expense of calling fnmatch if the file is ignorable due to leading '.'. (all_files, really_all_files): Removed; replaced by: (ignore): New variable. All uses changed. (IGNORE_DEFAULT, IGNORE_DOT_AND_DOTDOT, IGNORE_MINIMAL, HIDE_OPTION): New constants. (hide_patterns): New variable. (long_options, decode_switches, file_ignored, usage): Add support for --hide. (patterns_match): New function. (usage): Replace "hide" with "ignore" in explanation, to avoid confusion.
2004-09-26Remove unused variable.Paul Eggert
2004-09-26(gobble_file, print_long_format): Don't assume thatPaul Eggert
human-readable output has a byte count equal to its column width; this isn't always true in locales where the radix character is not '.' or ','. (format_user_or_group): Revamp code to match the above fix; this avoids the (very faint) possibility of integer overflow.
2004-09-24(main): Revamp option processing to support "chmod -r -w file".Paul Eggert
2004-09-24(xalloc_die): Declare to be `extern', not `static'Jim Meyering
to avoid a warning from gcc-3.4.1. Reported by Paul Eggert.
2004-09-23(parse_obsolete_option): Bring back supportPaul Eggert
for obsolete option followed by non-obsolete, or by more than one file. When obsolete, conform to SUSv2 rather than original POSIX 1003.2-1992, as SUSv2 corrected the case of "tail -c". Add support for the SUSv2 "b" modifier.
2004-09-22(struct dirstack_state) [current_arg_jumpbuf]: Improve the comment.Jim Meyering
2004-09-22(enum) [ALG_MD5]: Define to be 1, not 0.Jim Meyering
2004-09-22(xalloc_die): Declare to be static.Jim Meyering
2004-09-22(remember_created): Declare as `extern'.Jim Meyering
2004-09-22(copy): Declare as `extern'.Jim Meyering
2004-09-22(chown_files): Declare as `extern'.Jim Meyering
2004-09-22.Jim Meyering
2004-09-22(check-AUTHORS): New rule.Jim Meyering
(check): Depend on it.
2004-09-22Remove trailing blanks.Jim Meyering
2004-09-22Remove trailing blanks.Jim Meyering
2004-09-22remove trailing blankJim Meyering
2004-09-22(decode_switches): Don't compare a short valuePaul Eggert
to SIZE_MAX: GCC sometimes complains.
2004-09-21Remove unused "case 0".Paul Eggert
2004-09-21(main): Remove unused "case 0".Paul Eggert
(verbose): Now bool, not int. (VERBOSE_OPTION): New enum. (longopts, main): Use it.
2004-09-21Don't include "long-options.h".Paul Eggert