Date: Sun, 31 Jan 2010 15:07:38 +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-8@freebsd.org Subject: svn commit: r203291 - stable/8/bin/ls Message-ID: <201001311507.o0VF7cwK058737@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001311507.o0VF7cwK058737>