summaryrefslogtreecommitdiff
path: root/src/cp.c
AgeCommit message (Collapse)Author
1996-04-19(copy_reg): Rearrange arithmetic in conditional to avoidJim Meyering
integer overflow with large files.
1996-04-03(copy_reg): Use `ST_NBLOCKS (sb) * 512', not `sb.st_blocks *Jim Meyering
DEV_BSIZE.' From H.J. Lu (hjl@lucon.org).
1996-04-03Include assert.h (disabled).Jim Meyering
(path_concat): New function. (do_copy): Use path_concat instead of open-coding part of its functionality in two places. This has the additional benefit of avoiding forming destination names like `D//file' when the destination directory D includes a trailing slash -- as would happen when cp is used like this: mkdir D; touch file D/file; cp -i file D/ Reported by François Pinard.
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1996-03-09(copy): Comment change to avoid overwriting source with backup.Jim Meyering
1996-02-16(copy): Detect (and fail) when creating backup file would destroy source.Jim Meyering
Reported by Martin C. Martin <mcm@cs.cmu.edu>.
1995-12-22(main): Accept new option, --sparse={never,auto,always},Jim Meyering
to control creation of sparse files. (copy_reg): Set local, make_holes, from global flag_sparse. Include argmatch.h.
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-15Break long lines.Jim Meyering
1995-11-10Don't include error.h here.Jim Meyering
1995-11-10Don't protoize fwd dcl of dirname.Jim Meyering
1995-11-10Include error.h.Jim Meyering
1995-11-10Remove prototypes for stat, lstat.Jim Meyering
1995-11-09Protect prototypes with __P.Jim Meyering
1995-11-09Protoize.Jim Meyering
1995-11-03(copy): Use euidaccess instead of euidaccess_stat.Jim Meyering
1995-10-30(copy): Update one of the calls to eaccess_stat to use 3 arguments. Ugh!Jim Meyering
1995-10-01Declare stat, xstat.Jim Meyering
1995-06-22(main): Include program name in --version output.Jim Meyering
1995-05-13Use stat (lstat), not safe_stat (safe_lstat).Jim Meyering
1995-03-10add 1995 to Copyright datesJim Meyering
1995-01-27Rename SAFE_STAT and SAFE_LSTAT to lower case names.Jim Meyering
1994-12-10(copy, make_path_private): Use strr?chr instead of r?index.Jim Meyering
1994-11-04(make_path_private): Rename function from make_path to avoid confusion.Jim Meyering
(do_copy): Update caller.
1994-10-27.Jim Meyering
1994-10-02.Jim Meyering
1994-07-30.Jim Meyering
1994-07-01.Jim Meyering
1994-04-13.Jim Meyering
1994-01-26.Jim Meyering
1993-10-19merge with 3.8.4kJim Meyering
1993-10-13merge with 3.8.4eJim Meyering
1993-10-08merge with 3.8.3dJim Meyering
1993-10-06merge with 3.8.3bJim Meyering
1993-10-06merge with 3.8.3aJim Meyering
1993-08-27merge with 3.8.3Jim Meyering
1993-08-26merge with 3.8.2Jim Meyering
1993-08-05merge with 3.8.1Jim Meyering
1993-05-22merge with 3.5.5Jim Meyering
1993-04-04(copy, make_path, re_protect): Explicitly cast alloca return value to (char *).Jim Meyering
1993-04-04(copy): Declare to be static.Jim Meyering
1993-04-04(usage): Mention --help and --version.Jim Meyering
(main): Handle flag_help and flag_version before checking for invocation errors.
1993-04-02Add --help and --version options.Jim Meyering
1993-03-29merge with 3.4.1Jim Meyering
1992-12-02Convert static declarations of struct option to use new macros fromJim Meyering
getopt.h: no_argument, required_argument, and optional_argument.
1992-11-09Declared lots of external functions and variables static.Jim Meyering
Made several statically-initialized arrays `const.'