bin/107515: ls(1) bug
ighighi at gmail.com
Sat Jun 23 08:20:07 UTC 2007
The following reply was made to PR bin/107515; it has been noted by GNATS.
From: "Ighighi Ighighi" <ighighi at gmail.com>
To: bug-followup at FreeBSD.org
Subject: Re: bin/107515: ls(1) bug
Date: Sat, 23 Jun 2007 04:13:19 -0400
Bruce Evans wrote:
> I think it is a bug in fts(3) for fts_path to be empty. The empty
> pathname is never valid, and the error is for the directory. Apparently,
> fts(3) reduces /tmp/a/ to the invalid basename "", but does the right
> thing for /tmp/a.
Well, there's a 2 years old patch in OpenBSD applied in the same place
as yours, titled
"use fts_path if fts_name is not available", so it seems there are
cases where fts_name
could be "", the code in fts.c is theirs after all. Check:
Maybe it's time to patch this one.
More information about the freebsd-bugs