Module Name:    src
Committed By:   martin
Date:           Sat Jul 20 14:46:10 UTC 2024

Modified Files:
        src/bin/ls [netbsd-10]: ls.c

Log Message:
Pull up following revision(s) (requested by rin in ticket #743):

        bin/ls/ls.c: revision 1.78

PR/57892: Roberto Branco: Print full pathname in error messages


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.77.6.1 src/bin/ls/ls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/ls/ls.c
diff -u src/bin/ls/ls.c:1.77 src/bin/ls/ls.c:1.77.6.1
--- src/bin/ls/ls.c:1.77	Tue Jul  7 14:29:06 2020
+++ src/bin/ls/ls.c	Sat Jul 20 14:46:10 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: ls.c,v 1.77 2020/07/07 14:29:06 christos Exp $	*/
+/*	$NetBSD: ls.c,v 1.77.6.1 2024/07/20 14:46:10 martin Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #if 0
 static char sccsid[] = "@(#)ls.c	8.7 (Berkeley) 8/5/94";
 #else
-__RCSID("$NetBSD: ls.c,v 1.77 2020/07/07 14:29:06 christos Exp $");
+__RCSID("$NetBSD: ls.c,v 1.77.6.1 2024/07/20 14:46:10 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -445,7 +445,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 = EXIT_FAILURE;
 			break;
 		case FTS_D:

Reply via email to