Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2015 17:48:11 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r291775 - stable/9/bin/cp
Message-ID:  <201512041748.tB4HmB8B009755@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512041748.tB4HmB8B009755>