Searched hist:225338 (Results 1 - 1 of 1) sorted by relevance
/freebsd-9.3-release/sbin/fsck_ffs/ | ||
H A D | dir.c | diff 225338 Fri Sep 02 15:11:53 MDT 2011 delphij 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) |
Completed in 55 milliseconds