Changeset 10185


Ignore:
Timestamp:
Feb 12, 2010, 12:50:36 PM (12 years ago)
Author:
charles
Message:

(trunk daemon) #2899: "watch.c reports matches for every file" -- fixed in trunk for 1.90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/watch.c

    r9868 r10185  
    100100        while (i < len) {
    101101            struct inotify_event * event = (struct inotify_event *) &buf[i];
    102             tr_inf( "Found new .torrent file \"%s\" in watchdir \"%s\"", event->name, w->dir );
    103             w->callback( w->session, w->dir, event->name );
     102            if( strstr( event->name, ".torrent" ) != NULL )
     103            {
     104                tr_inf( "Found new .torrent file \"%s\" in watchdir \"%s\"", event->name, w->dir );
     105                w->callback( w->session, w->dir, event->name );
     106            }
    104107            i += EVENT_SIZE +  event->len;
    105108        }
Note: See TracChangeset for help on using the changeset viewer.