Report fts_errno' instead of errno' when the former applies.

This commit is contained in:
bde 1995-07-24 02:50:50 +00:00
parent c20c5aa1a5
commit cf2df4eb6c

View File

@ -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)