svn commit: r291775 - stable/9/bin/cp
Bryan Drewery
bdrewery at FreeBSD.org
Fri Dec 4 17:48:13 UTC 2015
Author: bdrewery
Date: Fri Dec 4 17:48:11 2015
New Revision: 291775
URL: https://svnweb.freebsd.org/changeset/base/291775
Log:
MFC r245832:
Return "failure" as we do for 'cp -i' and a "n" answer.
Relnotes: yes
Modified:
stable/9/bin/cp/utils.c
Directory Properties:
stable/9/bin/cp/ (props changed)
Modified: stable/9/bin/cp/utils.c
==============================================================================
--- stable/9/bin/cp/utils.c Fri Dec 4 17:36:35 2015 (r291774)
+++ stable/9/bin/cp/utils.c Fri Dec 4 17:48:11 2015 (r291775)
@@ -104,7 +104,7 @@ copy_file(const FTSENT *entp, int dne)
if (vflag)
printf("%s not overwritten\n", to.p_path);
(void)close(from_fd);
- return (0);
+ return (1);
} else if (iflag) {
(void)fprintf(stderr, "overwrite %s? %s",
to.p_path, YESNO);
More information about the svn-src-stable-9
mailing list