svn commit: r202944 - head/bin/ls
Jaakko Heinonen
jh at FreeBSD.org
Sun Jan 24 19:17:36 UTC 2010
Author: jh
Date: Sun Jan 24 19:17:35 2010
New Revision: 202944
URL: http://svn.freebsd.org/changeset/base/202944
Log:
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
Modified:
head/bin/ls/ls.c
Modified: head/bin/ls/ls.c
==============================================================================
--- head/bin/ls/ls.c Sun Jan 24 19:11:08 2010 (r202943)
+++ head/bin/ls/ls.c Sun Jan 24 19:17:35 2010 (r202944)
@@ -508,7 +508,7 @@ traverse(int argc, char *argv[], int opt
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:
More information about the svn-src-head
mailing list