diff options
author | wosch <wosch@FreeBSD.org> | 1997-12-08 21:02:36 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1997-12-08 21:02:36 +0000 |
commit | 866d71661181a5771f5fe0f668afee5e65f700ad (patch) | |
tree | 7de8107434a2f38d39368445b5b95b586fdd6ff7 /bin/rcp/rcp.c | |
parent | 45aac0ef64e8fbef3d778bf8aa667e8fc90866be (diff) | |
download | FreeBSD-src-866d71661181a5771f5fe0f668afee5e65f700ad.zip FreeBSD-src-866d71661181a5771f5fe0f668afee5e65f700ad.tar.gz |
Add -P option to cp(1) for local to local copying.
Pointed out by: bde
Diffstat (limited to 'bin/rcp/rcp.c')
-rw-r--r-- | bin/rcp/rcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index dff0ef8..84a018a 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: rcp.c,v 1.15 1997/09/28 08:32:59 markm Exp $ + * $Id: rcp.c,v 1.16 1997/12/07 20:49:39 wosch Exp $ */ #ifndef lint @@ -344,7 +344,7 @@ tolocal(argc, argv) if (!(bp = malloc(len))) err(1, NULL); (void)snprintf(bp, len, "exec %s%s%s %s %s", _PATH_CP, - iamrecursive ? " -R" : "", pflag ? " -p" : "", + iamrecursive ? " -PR" : "", pflag ? " -p" : "", argv[i], argv[argc - 1]); if (susystem(bp, userid)) ++errs; |