vergoh / vnstat

vnStat - a network traffic monitor for Linux and BSD
GNU General Public License v2.0
1.45k stars 123 forks source link

handle DT_UNKNOWN type entries in remove_directory #237

Closed cgzones closed 2 years ago

cgzones commented 2 years ago

readdir(3) may not determine the type of the returned entry, quoting man:readdir(3):

Currently, only some filesystems (among them: Btrfs, ext2, ext3, and
ext4) have full support for returning the file type in d_type. All
applications must properly handle a return of DT_UNKNOWN.

This happens for example in the Debian salsa-ci for reproducible builds.

vergoh commented 2 years ago

Thanks!