Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/smbd/notify_inotify.c

    r133 r228  
    2626#ifdef HAVE_INOTIFY
    2727
     28#if HAVE_SYS_INOTIFY_H
     29#include <sys/inotify.h>
     30#else
     31
    2832#ifdef HAVE_ASM_TYPES_H
    2933#include <asm/types.h>
     
    5862
    5963#endif
    60 
     64#endif
    6165
    6266/* older glibc headers don't have these defines either */
     
    244248        if (e == NULL) return;
    245249
    246         if (read(in->fd, e0, bufsize) != bufsize) {
     250        if (sys_read(in->fd, e0, bufsize) != bufsize) {
    247251                DEBUG(0,("Failed to read all inotify data\n"));
    248252                talloc_free(e0);
     
    251255
    252256        /* we can get more than one event in the buffer */
    253         while (bufsize >= sizeof(*e)) {
     257        while (e && (bufsize >= sizeof(*e))) {
    254258                struct inotify_event *e2 = NULL;
    255259                bufsize -= e->len + sizeof(*e);
Note: See TracChangeset for help on using the changeset viewer.