Date: Wed, 23 Jan 2013 02:06:20 +0000 (UTC) From: "David E. O'Brien" <obrien@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245832 - head/bin/cp Message-ID: <201301230206.r0N26Kqm005309@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: obrien Date: Wed Jan 23 02:06:20 2013 New Revision: 245832 URL: http://svnweb.freebsd.org/changeset/base/245832 Log: Return "failure" as we do for 'cp -i' and a "n" answer. Otherwise with '-v' we print out the file name as if it was copied: /tmp/2gb-card/M0132.CTG not overwritten /mnt/DCIM/CANONMSC/M0132.CTG -> /tmp/2gb-card/M0132.CTG Modified: head/bin/cp/utils.c Modified: head/bin/cp/utils.c ============================================================================== --- head/bin/cp/utils.c Wed Jan 23 00:49:05 2013 (r245831) +++ head/bin/cp/utils.c Wed Jan 23 02:06:20 2013 (r245832) @@ -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?201301230206.r0N26Kqm005309>