NetBSD Problem Report #57892

From www@netbsd.org  Mon Jan 29 22:51:28 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 879431A9238
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 29 Jan 2024 22:51:28 +0000 (UTC)
Message-Id: <20240129225127.4355C1A9239@mollari.NetBSD.org>
Date: Mon, 29 Jan 2024 22:51:27 +0000 (UTC)
From: rbranco@suse.de
Reply-To: rbranco@suse.de
To: gnats-bugs@NetBSD.org
Subject: ls(1) prints misleading error message when fts_name is empty
X-Send-Pr-Version: www-1.0

>Number:         57892
>Category:       bin
>Synopsis:       ls(1) prints misleading error message when fts_name is empty
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 29 22:55:00 +0000 2024
>Last-Modified:  Fri Feb 02 23:00:02 +0000 2024
>Originator:     Ricardo Branco
>Release:        NetBSD 10.0_RC3
>Organization:
>Environment:
>Description:

>How-To-Repeat:
To reproduce:

$ mkdir /tmp/a
$ chmod 000 /tmp/a
$ ls  /tmp/a/
ls: : Permission denied
$ ls /tmp/a
ls: a: Permission denied
>Fix:
Fixed in FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=107515

Fix: https://github.com/NetBSD/src/pull/28

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57892 CVS commit: src/bin/ls
Date: Fri, 2 Feb 2024 17:58:27 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Fri Feb  2 22:58:26 UTC 2024

 Modified Files:
 	src/bin/ls: ls.c

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


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

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

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.