Changeset 372 for trunk/src/sh_files.c


Ignore:
Timestamp:
Nov 1, 2011, 12:33:37 AM (13 years ago)
Author:
katerina
Message:

One more patch for ticket #265 (inotify). Handle dirs that are only specified as files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_files.c

    r371 r372  
    370370            {
    371371              sh_inotify_add_watch_later(ptr->name, &sh_file_watches, NULL,
    372                                          ptr->class, ptr->check_mask);
     372                                         ptr->class, ptr->check_mask, SH_INOTIFY_FILE);
    373373            }
    374374
     
    19071907    }
    19081908
    1909   if ((sh.flag.inotify & SH_INOTIFY_DOSCAN) != 0)
    1910     {
    1911       sh_inotify_add_watch_later(iname, &sh_file_watches, &status,
    1912                                  iclass, check_mask);
    1913     }
    1914    
    19151909  /* ---- stat the directory ----
    19161910   */
     
    19551949    }
    19561950
     1951  if ((sh.flag.inotify & SH_INOTIFY_DOSCAN) != 0)
     1952    {
     1953      sh_inotify_add_watch_later(iname, &sh_file_watches, &status,
     1954                                 iclass, check_mask, SH_INOTIFY_DIR);
     1955    }
     1956   
    19571957  hardlink_num = theFile->hardlinks;
    19581958
Note: See TracChangeset for help on using the changeset viewer.