Age | Commit message (Collapse) | Author | |
---|---|---|---|
2000-08-23 | Include <config.h> unconditionally, to be consistent | Jim Meyering | |
with all the other programs in this directory. | |||
2000-08-23 | back out last change | Jim Meyering | |
2000-08-22 | Don't even try to use lseek on character devices. | Jim Meyering | |
(buggy_lseek_support): New function. (skip): Use it. Reported by Martin Gallant via Michael Stone. | |||
2000-08-20 | (cp_option_init): Initialize to DEREF_ALWAYS, not `1'. | Jim Meyering | |
2000-08-20 | (cp_option_init): Initialize to DEREF_NEVER, not `0'. | Jim Meyering | |
2000-08-20 | (long_opts): Add --dereference, -L. | Jim Meyering | |
(usage): Describe -L and -H. (cp_option_init): Initialize to DEREF_UNDEFINED, not `1'. (main): Add `H' and `-L' to getopt spec string. [case 'a']: Initialize `dereference' to DEREF_NEVER, not 0. [case 'd']: Likewise. [case 'H']: New case. [case 'L']: New case. [case 'R']: Don't set dereference to `0' here. If it's not yet defined, set x.dereference to DEREF_NEVER if -R was specified, else set it to DEREF_ALWAYS. Set x.xstat accordingly for -H. | |||
2000-08-20 | Declare lstat. | Jim Meyering | |
(copy_dir): Set `xstat' member to lstat so that with `-H' we don't follow symlinks found via recursive traversal. Update uses of `dereference' to compare against new enum member names. | |||
2000-08-20 | (enum Dereference_symlink): Define. | Jim Meyering | |
(struct cp_options) [dereference]: Change type to Dereference_symlink. | |||
2000-08-20 | (print_totals): Rename global from opt_combined_arguments. | Jim Meyering | |
2000-08-19 | fix my grammar error in last change | Jim Meyering | |
2000-08-19 | (writeline): Correct comments. | Jim Meyering | |
From Bruno Haible. | |||
2000-08-18 | (DO_CHOWN): Do not make a special case for non-root. | Jim Meyering | |
POSIX.2 requires that cp -p and mv attempt to set the uid of the destination file, even if you're not root. This affects behavior only on hosts that let you give files away via chmod. | |||
2000-08-15 | (count_entry): Remember the current directory also for `.' | Jim Meyering | |
and `..'. Reported by Stephen Smoogen, based on a patch from H.J. Lu. | |||
2000-08-14 | remove incorrect FIXME comment. | Jim Meyering | |
2000-08-14 | (copy_reg): Move declaration of local, `n_read', into | Jim Meyering | |
the scope where it's used. (copy_internal): In calling copy_reg, pass not the raw `src_mode', but the possibly-umask-relative mode, `get_dest_mode (x, src_mode)'. | |||
2000-08-13 | (copy_reg): Add comment. | Jim Meyering | |
2000-08-13 | (get_dest_mode): Rename from new_nondir_mode. | Jim Meyering | |
Honor the umask for `cp', but not for `mv' or `cp -p'. (copy_reg): New 4th parameter, dst_mode. Pass it as 3rd arg. to open. (copy_internal): Change type of locals `src_mode' and `src_type' from int to mode_t. Remove unnecessary local `fix_mode'. Combine two if-stmts into one. Pass `src_mode' as 4th arg to copy_reg. If we've just created a new regular file, return early, skipping the chmod step. copy_reg now sets permissions of such files upon creation. Use get_dest_mode, so there's just one chmod call here. | |||
2000-08-11 | Add support for multi-byte locales. | Jim Meyering | |
(iswprint, mbrtowc, wcwidth): Provide default definitions. (total_bytes): New variable. (print_bytes): New variable. (longopts): Change abbreviation for --chars from 'c' to 'm'. (usage): Update. (write_counts): Add `bytes' argument. (wc): New variables `bytes', `count_bytes', `count_chars', `count_complicated'. The old code determines `bytes', not `chars'. New case for MB_CUR_MAX > 1. A non-printable non-space character does not increment the line position or start a word. Update `total_bytes'. (main): Initialize `print_bytes' and `total_bytes' to 0. Accept 'm' option. Pass `total_bytes' to write_counts. | |||
2000-08-11 | (usage): Describe -d and -i in a locale-independent way. | Jim Meyering | |
2000-08-11 | (usage): Don't describe System V syntax, as it doesn't always work. | Jim Meyering | |
2000-08-08 | (movefile): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-08 | (remove_cwd_entries, rm): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-08 | (main): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-08 | (do_link): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-08 | (main): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-08 | (xstrndup): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-08 | (cut_fields): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
(cut_fields): Check for I/O error as well as end-of-file. | |||
2000-08-08 | (copy_dir, copy_internal): Invoke xalloc_die instead of printing our own ↵ | Jim Meyering | |
message. | |||
2000-08-08 | (main): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-08 | (quotearg_colon, xmalloc): "virtual memory exhausted" -> "memory exhausted" | Jim Meyering | |
2000-08-08 | (usage, main): For cp -P messages, mention the new behavior as well as the old. | Jim Meyering | |
2000-08-08 | Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-07 | (xputenv): Invoke xalloc_die instead of printing our own message. | Jim Meyering | |
2000-08-07 | (head): Call write_header here. | Jim Meyering | |
(head_file): ... not here. | |||
2000-08-07 | (closeout_func): Remove variable. | Jim Meyering | |
(close_stdout_wrapper): Remove unused function. (main): Remove assignment to closeout_func. | |||
2000-08-07 | (fold_file): Remove ferror(stdout) check, already done in close_stdout. | Jim Meyering | |
2000-08-07 | (enum) [PARENTS_OPTION]: New member. | Jim Meyering | |
(long_opts): Update "parents" and deprecated "path" entries to use `PARENTS_OPTION', not `P'. (usage): Update --help output. (main): Warn that the meaning of `-P' will soon change. | |||
2000-08-07 | (usage): Warn more succintly about the effects of | Jim Meyering | |
the locale on sort order. | |||
2000-08-06 | We know nbytes is 0, so remove it from bail-out test. | Jim Meyering | |
2000-08-06 | (pipe_lines): Declare local `cp' to be const. | Jim Meyering | |
2000-08-06 | (pipe_lines): Add variable `nbytes' so we can free | Jim Meyering | |
`tmp' immediately after read loop. Don't process an empty file. This fixes a buffer-underrun error -- also thanks to bounded pointers. | |||
2000-08-05 | (main): Rename local `t' to `tmp_dir' to avoid shadowing | Jim Meyering | |
a previous local by that name. (usage): Warn that GNU sort is now locale-aware, and suggest people put LC_ALL=POSIX in their environment. | |||
2000-08-05 | (init_header): Fix buffer-overrun error. | Jim Meyering | |
Allocated buffer was sometimes too small. Reported by Greg McGary (who found this bug using his bounded-pointers-enabled gcc). (init_header): Move declarations of several variables into the inner scope where they are used. | |||
2000-08-05 | (MAX): Remove definition (It's in sys2.h). | Jim Meyering | |
2000-08-04 | (store_columns): Remove conjunct that would dereference | Jim Meyering | |
an out-of-bounds pointer. Reported by Greg McGary (who found this bug using his bounded-pointers-enabled gcc). | |||
2000-08-01 | (tee): Use SET_BINARY and SET_BINARY2. | Jim Meyering | |
From Prashant TR. | |||
2000-07-31 | (cut_fields): Use `virtual memory exhausted', not `Memory exhausted'. | Jim Meyering | |
2000-07-31 | [!HAVE_CONFIG_H]: Use `virtual memory exhausted', not `Memory exhausted'. | Jim Meyering | |
2000-07-30 | (ISPRINT): Undef before defining to avoid warning. | Jim Meyering | |
2000-07-30 | (remove_file): Quote the file names that are displayed with --verbose. | Jim Meyering | |