From owner-svn-src-stable@FreeBSD.ORG Thu Mar 25 16:31:05 2010 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC8B5106566C; Thu, 25 Mar 2010 16:31:05 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AC3388FC22; Thu, 25 Mar 2010 16:31:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o2PGV5jS075916; Thu, 25 Mar 2010 16:31:05 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o2PGV52c075915; Thu, 25 Mar 2010 16:31:05 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <201003251631.o2PGV52c075915@svn.freebsd.org> From: Jaakko Heinonen Date: Thu, 25 Mar 2010 16:31:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r205648 - stable/7/bin/ls X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2010 16:31:05 -0000 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: