svn commit: r203291 - stable/8/bin/ls

Jaakko Heinonen jh at FreeBSD.org
Sun Jan 31 15:07:38 UTC 2010


Author: jh
Date: Sun Jan 31 15:07:38 2010
New Revision: 203291
URL: http://svn.freebsd.org/changeset/base/203291

Log:
  MFC r202944:
  
  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
  Approved by:	trasz (mentor)

Modified:
  stable/8/bin/ls/ls.c
Directory Properties:
  stable/8/bin/ls/   (props changed)

Modified: stable/8/bin/ls/ls.c
==============================================================================
--- stable/8/bin/ls/ls.c	Sun Jan 31 14:51:04 2010	(r203290)
+++ stable/8/bin/ls/ls.c	Sun Jan 31 15:07:38 2010	(r203291)
@@ -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-all mailing list