From 03aec1f65be32fd58299aefea7867efc51cf7786 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 24 Jul 1995 02:50:50 +0000 Subject: [PATCH] Report `fts_errno' instead of `errno' when the former applies. --- usr.sbin/mtree/create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/mtree/create.c b/usr.sbin/mtree/create.c index 37977b650207..694dec7d0372 100644 --- a/usr.sbin/mtree/create.c +++ b/usr.sbin/mtree/create.c @@ -109,8 +109,8 @@ cwalk() case FTS_DNR: case FTS_ERR: case FTS_NS: - (void)fprintf(stderr, - "mtree: %s: %s\n", p->fts_path, strerror(errno)); + (void)fprintf(stderr, "mtree: %s: %s\n", + p->fts_path, strerror(p->fts_errno)); break; default: if (!dflag)