K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2008-09-22T20:19:54.052497Z K 7 svn:log V 654 Merge r182892 from head to stable/7, I had to manually change the code to include "thread" argument to the vn_lock() which got removed in HEAD: Getdents requires padding with 2 bytes instead of 1 byte as with getdents64. The last byte is used for storing the d_type, add this to plain getdents case where it was missing before. Also change the code to use strlcpy instead of plain strcpy. This changes fix the getdents crash we had reports about (hl2 server etc.) PR: kern/117010 MFC after: 1 week Submitted by: Dmitry Chagin (dchagin@) Tested by: MITA Yoshio Approved by: kib (mentor) Approved by: re (kensmith) END