Branch: Tag:

2017-07-19

2017-07-19 17:17:41 by Bill Welliver <bill@welliver.org>

Inotify: not all dirents have d_type.

10:    *    */    - #ifdef HAVE_CONFIG_H - # include "config.h" + #ifdef HAVE_INOTIFY_CONFIG_H + # include "inotify_config.h"   #endif      #include "global.h"
278:    pad = 0x08 - (ev.len & 0x07);    ev.len += pad;    } -  + #ifdef HAVE_DIRENT_D_TYPE    if (dirent->d_type == DT_DIR) {    ev.mask |= IN_ISDIR;    }    /* FIXME: Handle DT_UNKNOWN. */ -  + #endif /* HAVE_DIRENT_T_TYPE */       string_build_mkspace(&THIS->buf, sizeof(ev) + ev.len, 0);    string_builder_binary_strcat0(&THIS->buf,