On further checking, it appears that it sees a filename ending in "in", removes "in", and if the result ends in a period, removes the period.
I also found this error, which is not a bug in du: # ls -al /var/hammer/usr/snap-20111111-0501/pkgsrc/pkgtools/pkg_install/work/libfetch/ ls: .depend: No such file or directory total 377 drwxr-xr-x 1 root wheel 0 Aug 11 12:41 . drwxr-xr-x 1 root wheel 0 Aug 11 12:41 .. -rw-r--r-- 1 root wheel 876 Aug 11 12:41 Makefile -rw-r--r-- 1 root wheel 22731 Aug 11 12:41 common.c -rw-r--r-- 1 root wheel 4890 Aug 11 12:41 common.h -rw-r--r-- 1 root wheel 12474 Aug 11 12:43 common.o -rwxr-xr-x 1 root wheel 316 Aug 11 12:41 errlist.sh -rw-r--r-- 1 root wheel 20718 Aug 11 12:41 fetch.3 -rw-r--r-- 1 root wheel 13897 Aug 11 12:41 fetch.c -rw-r--r-- 1 root wheel 28234 Aug 11 12:41 fetch.cat3 -rw-r--r-- 1 root wheel 5966 Aug 11 12:41 fetch.h -rw-r--r-- 1 root wheel 8700 Aug 11 12:44 fetch.o -rw-r--r-- 1 root wheel 5500 Aug 11 12:41 file.c -rw-r--r-- 1 root wheel 3239 Aug 11 12:44 file.o -rw-r--r-- 1 root wheel 29553 Aug 11 12:41 ftp.c -rw-r--r-- 1 root wheel 1920 Aug 11 12:41 ftp.errors -rw-r--r-- 1 root wheel 17219 Aug 11 12:44 ftp.o -rw-r--r-- 1 root wheel 2470 Aug 11 12:43 ftperr.h -rw-r--r-- 1 root wheel 34781 Aug 11 12:41 http.c -rw-r--r-- 1 root wheel 1235 Aug 11 12:41 http.errors -rw-r--r-- 1 root wheel 18693 Aug 11 12:44 http.o -rw-r--r-- 1 root wheel 1812 Aug 11 12:43 httperr.h -rw-r--r-- 1 root wheel 61952 Aug 11 12:44 libfetch.a Pierre -- gau do li'i co'e kei do