Don't mix POSIX/GIO operations when opening/saving/stat()ing files
commitdaf4dd45b874f7d29e30f8eddd4fbb6cae40e687
authorJiří Techet <techet@gmail.com>
Tue, 18 Aug 2015 17:46:08 +0000 (18 19:46 +0200)
committerJiří Techet <techet@gmail.com>
Thu, 1 Oct 2015 10:09:45 +0000 (1 12:09 +0200)
tree96e0e086b7242852c47cf837902ab3630f06bbcf
parent3495cf05abf42e5f08952a19d3798cc27a50b6e6
Don't mix POSIX/GIO operations when opening/saving/stat()ing files

GVFS uses different backends for "native" GIO operations and POSIX
operations which use the FUSE backend. If the two kinds of operations are
mixed, we may get races.

The patch checks the value of file_prefs.use_gio_unsafe_file_saving and
based on it either uses GIO operations or POSIX operations for file loading,
saving and checking modification time.
src/document.c