summaryrefslogtreecommitdiff
path: root/bin/cp
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-07-31 17:00:59 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-07-31 17:00:59 +0000
commit84236f1c48b67a6513fb033bff217807b94918e2 (patch)
tree4f51fd1b45d04c248efc9d222f3fdd2d910e3de4 /bin/cp
parent081c5da0565db67f2a0c351eefe4fb20050ce8da (diff)
improve error message (yes I know mmap(2) isn't used yet.)
Diffstat (limited to 'bin/cp')
-rw-r--r--bin/cp/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c
index 04d36e89194..33b31ed8d30 100644
--- a/bin/cp/utils.c
+++ b/bin/cp/utils.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utils.c,v 1.7 1997/05/28 21:53:32 deraadt Exp $ */
+/* $OpenBSD: utils.c,v 1.8 1997/07/31 17:00:58 kstailey Exp $ */
/* $NetBSD: utils.c,v 1.6 1997/02/26 14:40:51 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)utils.c 8.3 (Berkeley) 4/1/94";
#else
-static char rcsid[] = "$OpenBSD: utils.c,v 1.7 1997/05/28 21:53:32 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: utils.c,v 1.8 1997/07/31 17:00:58 kstailey Exp $";
#endif
#endif /* not lint */
@@ -118,7 +118,7 @@ copy_file(entp, dne)
if (fs->st_size <= 8 * 1048576) {
if ((p = mmap(NULL, (size_t)fs->st_size, PROT_READ,
0, from_fd, (off_t)0)) == (char *)-1) {
- warn("%s", entp->fts_path);
+ warn("mmap: %s", entp->fts_path);
rval = 1;
} else {
if (write(to_fd, p, fs->st_size) != fs->st_size) {