Jim Meyering
b617aa5f3f
Add comma after e.g. in comment.
...
From Karl B.
1996-06-23 19:15:15 +00:00
Jim Meyering
fc05e28803
(copy_reg): Cast both sides of comparison to size_t to avoid warning
...
about `comparison between signed and unsigned' from gcc -Wall.
1996-06-19 04:10:17 +00:00
Jim Meyering
b95e3d2f47
(do_copy): Use STREQ here instead of strcmp(...) == 0.
...
Declare pointer parameters const as appropriate.
1996-06-19 03:19:51 +00:00
Jim Meyering
a0321a68c0
(do_copy): Change message from `missing file argument' to
...
more precise `missing destination file'. From Karl Berry.
1996-06-19 02:56:06 +00:00
Jim Meyering
6099222717
(do_copy): When the force and backup options have been
...
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-06-19 01:59:12 +00:00
Jim Meyering
dc98736719
update Copyright years for 1996
1996-04-24 04:42:21 +00:00
Jim Meyering
ade410fae0
[HAVE_LCHOWN]: Define chown to lchown.
1996-04-24 03:35:55 +00:00
Jim Meyering
874f418e03
Remove obsolete FIXME.
1996-04-21 05:15:39 +00:00
Jim Meyering
f60c8ea48b
(copy_reg): Rearrange arithmetic in conditional to avoid
...
integer overflow with large files.
1996-04-19 05:07:52 +00:00
Jim Meyering
3191649a85
(copy_reg): Use ST_NBLOCKS (sb) * 512', not sb.st_blocks *
...
DEV_BSIZE.' From H.J. Lu (hjl@lucon.org ).
1996-04-03 12:20:24 +00:00
Jim Meyering
4325d27ddd
Include assert.h (disabled).
...
(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-04-03 05:42:14 +00:00
Jim Meyering
5de0b392f2
Update FSF's address.
1996-03-24 18:47:09 +00:00
Jim Meyering
bb6a548712
(main): Declare to be of type int, not void.
1996-03-21 22:45:19 +00:00
Jim Meyering
ca0246a4c1
Don't include version.h.
...
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:49:28 +00:00
Jim Meyering
10c96c43ac
(main): Initialize for internationalized message support: call setlocale,
...
bindtextdomain, and textdomain.
1996-03-12 03:08:30 +00:00
Jim Meyering
8ddd60a387
(copy): Comment change to avoid overwriting source with backup.
1996-03-09 04:59:22 +00:00
Jim Meyering
816194943b
(copy): Detect (and fail) when creating backup file would destroy source.
...
Reported by Martin C. Martin <mcm@cs.cmu.edu >.
1996-02-16 05:08:04 +00:00
Jim Meyering
654ad9e596
(main): Accept new option, --sparse={never,auto,always},
...
to control creation of sparse files.
(copy_reg): Set local, make_holes, from global flag_sparse.
Include argmatch.h.
1995-12-22 05:30:48 +00:00
Jim Meyering
073c4cb543
Mark all translatable strings using po-mode.el.
1995-11-29 19:24:52 +00:00
Jim Meyering
57ec0f45c9
s/non-zero/nonzero/g
1995-11-27 05:34:31 +00:00
Jim Meyering
f1e1eb58be
Break long lines.
1995-11-15 15:45:28 +00:00
Jim Meyering
dde28b7ffe
Don't include error.h here.
1995-11-10 15:20:00 +00:00
Jim Meyering
8108bc26d6
Don't protoize fwd dcl of dirname.
1995-11-10 14:43:31 +00:00
Jim Meyering
05907fc584
Include error.h.
1995-11-10 14:41:20 +00:00
Jim Meyering
ca56751421
Remove prototypes for stat, lstat.
1995-11-10 14:22:07 +00:00
Jim Meyering
b7b00aad08
Protect prototypes with __P.
1995-11-09 23:41:10 +00:00
Jim Meyering
c0d94c89ec
Protoize.
1995-11-09 17:02:23 +00:00
Jim Meyering
83780d95f0
(copy): Use euidaccess instead of euidaccess_stat.
1995-11-03 19:59:44 +00:00
Jim Meyering
f05befc26c
(copy): Update one of the calls to eaccess_stat to use 3 arguments. Ugh!
1995-10-30 17:53:48 +00:00
Jim Meyering
eddb25aa26
Declare stat, xstat.
1995-10-01 20:17:25 +00:00
Jim Meyering
ec8d1fce62
(main): Include program name in --version output.
1995-06-22 18:43:14 +00:00
Jim Meyering
99ce9e9832
Use stat (lstat), not safe_stat (safe_lstat).
1995-05-13 12:48:33 +00:00
Jim Meyering
1423198343
add 1995 to Copyright dates
1995-03-10 04:15:06 +00:00
Jim Meyering
69f39255bc
Rename SAFE_STAT and SAFE_LSTAT to lower case names.
1995-01-27 17:03:21 +00:00
Jim Meyering
36a504f605
(copy, make_path_private): Use strr?chr instead of r?index.
1994-12-10 05:41:52 +00:00
Jim Meyering
aebff608dc
(make_path_private): Rename function from make_path to avoid confusion.
...
(do_copy): Update caller.
1994-11-04 06:03:25 +00:00
Jim Meyering
4c8adc4821
.
1994-10-27 04:18:00 +00:00
Jim Meyering
f17c045d21
.
1994-10-02 02:09:38 +00:00
Jim Meyering
a272d8b0c6
.
1994-07-30 16:17:45 +00:00
Jim Meyering
4eb8e70031
.
1994-07-01 16:53:29 +00:00
Jim Meyering
baaac7ac25
.
1994-04-13 15:26:17 +00:00
Jim Meyering
5629153f1e
.
1994-01-26 18:19:10 +00:00
Jim Meyering
723d3d528d
merge with 3.8.4k
1993-10-19 00:00:06 +00:00
Jim Meyering
20905f2c93
merge with 3.8.4e
1993-10-13 22:30:38 +00:00
Jim Meyering
95f7eb6267
merge with 3.8.3d
1993-10-08 00:51:10 +00:00
Jim Meyering
f2080b7714
merge with 3.8.3b
1993-10-06 16:44:26 +00:00
Jim Meyering
19cd821ddb
merge with 3.8.3a
1993-10-06 00:24:55 +00:00
Jim Meyering
27049d3bfc
merge with 3.8.3
1993-08-27 04:43:46 +00:00
Jim Meyering
429043125e
merge with 3.8.2
1993-08-26 04:38:30 +00:00
Jim Meyering
410da16d02
merge with 3.8.1
1993-08-05 02:20:48 +00:00