mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 13:05:18 +01:00
Add -P option to cp(1) for local to local copying.
Pointed out by: bde
This commit is contained in:
parent
038a366695
commit
ac105a5777
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31633
@ -30,7 +30,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* 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
|
#ifndef lint
|
||||||
@ -344,7 +344,7 @@ tolocal(argc, argv)
|
|||||||
if (!(bp = malloc(len)))
|
if (!(bp = malloc(len)))
|
||||||
err(1, NULL);
|
err(1, NULL);
|
||||||
(void)snprintf(bp, len, "exec %s%s%s %s %s", _PATH_CP,
|
(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]);
|
argv[i], argv[argc - 1]);
|
||||||
if (susystem(bp, userid))
|
if (susystem(bp, userid))
|
||||||
++errs;
|
++errs;
|
||||||
|
Loading…
Reference in New Issue
Block a user