inotify: Further fixes for hard link monitoring support

This gets the G_FILE_MONITOR_WATCH_HARD_LINKS flag to the state where it
doesn’t cause crashes, and essentially acts as a no-op. It will not yet
actually monitor for changes made via hard links.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=755721
This commit is contained in:
Philip Withnall
2018-02-26 13:35:07 +00:00
parent cc5cd5e8ea
commit 3e4e005c96
2 changed files with 24 additions and 14 deletions

View File

@@ -158,8 +158,6 @@ ih_event_callback (ik_event_t *event,
gboolean interesting;
GFileMonitorEvent event_flags;
g_assert (!file_event); /* XXX hardlink support */
event_flags = ih_mask_to_EventFlags (event->mask);
if (event->mask & IN_MOVE)