svn commit: r205648 - stable/7/bin/ls

Jaakko Heinonen jh at FreeBSD.org
Thu Mar 25 16:31:05 UTC 2010


Author: jh
Date: Thu Mar 25 16:31:05 2010
New Revision: 205648
URL: http://svn.freebsd.org/changeset/base/205648

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

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

Modified: stable/7/bin/ls/ls.c
==============================================================================
--- stable/7/bin/ls/ls.c	Thu Mar 25 15:56:04 2010	(r205647)
+++ stable/7/bin/ls/ls.c	Thu Mar 25 16:31:05 2010	(r205648)
@@ -504,7 +504,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-stable-7 mailing list