summaryrefslogtreecommitdiff
path: root/src/cp.c
AgeCommit message (Collapse)Author
1996-08-19Include path-concat.h.Jim Meyering
(do_copy): Check path_concat return value. (path_concat): Remove function.
1996-07-31(DO_CHOWN): New macro -- derived from code in copy.Jim Meyering
(copy): Use DO_CHOWN to assure that any newly-created symbolic links have proper owner and group.
1996-07-20(path_concat): Rewrite to return new parameter.Jim Meyering
(do_copy): Update uses of path_concat to use new parameter. Use that new pointer to compute correct offset for make_path_private. Before, cp --recursive --parents SRC DEST failed when SRC was an absolute file name. E.g., % cd /tmp; rm -rf d f; mkdir d; touch f; cp -PR /tmp/f d cp: tmp: No such file or directory Reported by Horst von Brand vonbrand@sleipnir.valparaiso.cl.
1996-06-23Add comma after e.g. in comment.Jim Meyering
From Karl B.
1996-06-19(copy_reg): Cast both sides of comparison to size_t to avoid warningJim Meyering
about `comparison between signed and unsigned' from gcc -Wall.
1996-06-19(do_copy): Use STREQ here instead of strcmp(...) == 0.Jim Meyering
Declare pointer parameters const as appropriate.
1996-06-19(do_copy): Change message from `missing file argument' toJim Meyering
more precise `missing destination file'. From Karl Berry.
1996-06-19(do_copy): When the force and backup options have beenJim Meyering
specified and the source and destination are the same name for an existing, regular file, convert the user's command, e.g. `cp --force --backup foo foo' to `cp --force foo fooSUFFIX' where SUFFIX is determined by any version control options used. At urging of (most recently) Karl Berry.
1996-04-24update Copyright years for 1996Jim Meyering
1996-04-24[HAVE_LCHOWN]: Define chown to lchown.Jim Meyering
1996-04-21Remove obsolete FIXME.Jim Meyering
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