Re: [PATCH 2.4.23, 2.6.0-test11] fix d_type in readdir in isofs

From: viro
Date: Tue Dec 09 2003 - 05:12:24 EST


On Tue, Dec 09, 2003 at 10:47:32AM +0100, Domen Puncer wrote:
> Hi!
>
> Played with scandir, and noticed iso9660's files d_type is always 0,
> so here's a fix.

No, it isn't. DT_UNKNOWN is "I don't know; make no assumptions".
DT_REG is "regular file". Returning it when object in question is
e.g. a symlink is wrong.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/