Find file: fix directory search order to be depth-first again.

This matches the pre-glib implementation, and is way more natural.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Oswald Buddenhagen 2016-05-22 12:45:58 +02:00 committed by Andrew Borodin
parent 8710d2522f
commit bb782ad8ef

View File

@ -873,7 +873,7 @@ push_directory (vfs_path_t * dir)
static inline vfs_path_t * static inline vfs_path_t *
pop_directory (void) pop_directory (void)
{ {
return (vfs_path_t *) g_queue_pop_tail (&dir_queue); return (vfs_path_t *) g_queue_pop_head (&dir_queue);
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */