diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2019-01-28 18:58:43 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2019-01-28 18:58:43 +0000 |
commit | ca2b77d41bf9c6b86107ae04354fc3c869d060da (patch) | |
tree | 8936ac5448690ec3d75c1b88dd0ec4e192601691 /bin/cp/utils.c | |
parent | 7ee95d42836ee9d4d3ec2b34cb6e601c78e2280b (diff) |
Implement cp -a ("archive" mode)
Not standard, but supported at least by GNU cp, IllumOS, NetBSD,
FreeBSD, DragonflyBSD. No need to be gratuitously different. This
should also allow us to drop patches in ~10 ports.
Based on an initial diff by benno@ with input from sthen@ and jmc@
ok benno@ danj@ sthen@ martijn@ deraadt@
Diffstat (limited to 'bin/cp/utils.c')
-rw-r--r-- | bin/cp/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c index dc86deb17b7..2275c127b76 100644 --- a/bin/cp/utils.c +++ b/bin/cp/utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utils.c,v 1.46 2018/09/07 13:46:33 martijn Exp $ */ +/* $OpenBSD: utils.c,v 1.47 2019/01/28 18:58:42 jca Exp $ */ /* $NetBSD: utils.c,v 1.6 1997/02/26 14:40:51 cgd Exp $ */ /*- @@ -326,9 +326,9 @@ void usage(void) { (void)fprintf(stderr, - "usage: %s [-fipv] [-R [-H | -L | -P]] source target\n", __progname); + "usage: %s [-afipv] [-R [-H | -L | -P]] source target\n", __progname); (void)fprintf(stderr, - " %s [-fipv] [-R [-H | -L | -P]] source ... directory\n", + " %s [-afipv] [-R [-H | -L | -P]] source ... directory\n", __progname); exit(1); } |