diff options
author | jh <jh@FreeBSD.org> | 2010-01-24 19:17:35 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2010-01-24 19:17:35 +0000 |
commit | 664f8ff8b9cea7c7266e8d170ef88f32d4911b1a (patch) | |
tree | 8ec0aee4bb969befd61d88f2cc6a5a9c3e11c5a7 /bin/ls/ls.c | |
parent | bdb90ab51e9a838073e069f027c0ea75febe1b0f (diff) | |
download | FreeBSD-src-664f8ff8b9cea7c7266e8d170ef88f32d4911b1a.zip FreeBSD-src-664f8ff8b9cea7c7266e8d170ef88f32d4911b1a.tar.gz |
Print full path in the error message. It's possible that fts(3)
provides an empty fts_name and reporting the full path is more
appropriate especially with the -R option.
PR: bin/107515
Submitted by: bde
Approved by: trasz (mentor)
MFC after: 1 week
Diffstat (limited to 'bin/ls/ls.c')
-rw-r--r-- | bin/ls/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 5338071..ee6adcd 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -508,7 +508,7 @@ traverse(int argc, char *argv[], int options) break; case FTS_DNR: case FTS_ERR: - warnx("%s: %s", p->fts_name, strerror(p->fts_errno)); + warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); rval = 1; break; case FTS_D: |