summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-01-25 07:31:01 +0000
committerdg <dg@FreeBSD.org>1995-01-25 07:31:01 +0000
commitdd92b5764723d2e00ff85d9eca29fe80695809fc (patch)
tree16fdbe1158a842b20056dd229483483cf16fb157
parent7f29893b63f72c6b71872d26b05d980b90c7acb1 (diff)
downloadFreeBSD-src-dd92b5764723d2e00ff85d9eca29fe80695809fc.zip
FreeBSD-src-dd92b5764723d2e00ff85d9eca29fe80695809fc.tar.gz
Fix bogus format string; fixes problem reported by Wolfram Schneider.
-rw-r--r--bin/cp/cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index d8a2c8dc..85cb966 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cp.c,v 1.2 1994/09/24 02:53:41 davidg Exp $
+ * $Id: cp.c,v 1.3 1994/12/30 13:12:12 bde Exp $
*/
#ifndef lint
@@ -370,7 +370,7 @@ copy(argv, type, fts_options)
err(1, "%s", to.p_path);
} else if (!S_ISDIR(to_stat.st_mode)) {
errno = ENOTDIR;
- err(1, "%s: %s", to.p_path);
+ err(1, "%s", to.p_path);
}
/*
* If not -p and directory didn't exist, set it to be
OpenPOWER on IntegriCloud