From owner-svn-src-all@freebsd.org Fri Dec 4 17:48:12 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0764A41EE7; Fri, 4 Dec 2015 17:48:12 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BCDC617A3; Fri, 4 Dec 2015 17:48:12 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB4HmB9F009756; Fri, 4 Dec 2015 17:48:11 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB4HmB8B009755; Fri, 4 Dec 2015 17:48:11 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201512041748.tB4HmB8B009755@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Fri, 4 Dec 2015 17:48:11 +0000 (UTC) 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 X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 17:48:13 -0000 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);