Xin LI fdc61a888d Fix the check in dircheck() on namlen.
The value of namlen is copied from on-disk d_namlen, which is a 8-bit
unsigned integer which can never exceed MAXNAMLEN (255) so the test is
always true.  Moreover, UFS does not allow d_namelen being zero.

Change namlen from u_int to u_int8_t, and replace the unneeded test
with a useful test.

PR:		bin/160339
Submitted by:	Eugene Grosbein <eugen grosbein.pp.ru>
MFC after:	2 weeks
Approved by:	re (kib)
2011-09-02 17:05:34 +00:00
..
2011-09-02 17:05:34 +00:00
2011-04-27 02:55:03 +00:00
2011-04-27 02:55:03 +00:00
2011-04-27 02:55:03 +00:00
2011-02-12 13:17:14 +00:00
2011-04-27 02:55:03 +00:00