Date: Thu, 25 Mar 2010 16:31:05 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r205648 - stable/7/bin/ls Message-ID: <201003251631.o2PGV52c075915@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003251631.o2PGV52c075915>