summaryrefslogtreecommitdiff
path: root/usr.sbin/mtree/mtree.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-01-20 00:20:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-01-20 00:20:15 +0000
commit557a50bea8f1bac855c94921d983966806b69120 (patch)
tree1bd10ff53cc512550473e58569c915430688a7f1 /usr.sbin/mtree/mtree.c
parentbabc9e35464d25604c3f334af5fe73e207563600 (diff)
getcwd() does not stuff an error string in buf on error, call strerror()
instead.
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-rw-r--r--usr.sbin/mtree/mtree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c
index 3c08f7f8681..4c083ffd258 100644
--- a/usr.sbin/mtree/mtree.c
+++ b/usr.sbin/mtree/mtree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtree.c,v 1.10 1999/01/24 10:26:54 rohee Exp $ */
+/* $OpenBSD: mtree.c,v 1.11 2000/01/20 00:20:14 millert Exp $ */
/* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: mtree.c,v 1.10 1999/01/24 10:26:54 rohee Exp $";
+static char rcsid[] = "$OpenBSD: mtree.c,v 1.11 2000/01/20 00:20:14 millert Exp $";
#endif
#endif /* not lint */
@@ -152,7 +152,7 @@ main(argc, argv)
error("%s: %s", dir, strerror(errno));
if ((cflag || sflag) && !getcwd(fullpath, sizeof fullpath))
- error("%s", fullpath);
+ error("getcwd: %s", strerror(errno));
if (cflag) {
cwalk();