Issue #4536 - Seg fault when trying to open image on Google Drive (Gnome 3.34.3)
In file_open_image(), mount non-native files *before* looking up a file-proc. Previously, we'd only mount the file after the initial lookup, and fail to perform a second lookup if the mount succeeded, leaving us with a NULL file-proc and a subsequent segfault. Additionally, simplify the rest of the remote-file code-path.
Showing with 33 additions and 39 deletions