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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"