mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +01:00 
			
		
		
		
	inotify: fix move event matching accounting
The hash table stores the list of unmatched IN_MOVE_FROM events, but we were removing entries from it when popping IN_MOVE_TO events. Fix that up to correct a crash in nautilus due to the assertion failure below. https://bugzilla.gnome.org/show_bug.cgi?id=746749
This commit is contained in:
		| @@ -313,7 +313,7 @@ ik_source_dispatch (GSource     *source, | ||||
|       /* callback will free the event */ | ||||
|       event = g_queue_pop_head (&iks->queue); | ||||
|  | ||||
|       if (event->mask & IN_MOVED_TO && !event->pair) | ||||
|       if (event->mask & IN_MOVED_FROM && !event->pair) | ||||
|         g_hash_table_remove (iks->unmatched_moves, GUINT_TO_POINTER (event->cookie)); | ||||
|  | ||||
|       G_LOCK (inotify_lock); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user