Skip to content

Instantly share code, notes, and snippets.

@whatsthebeef
Created February 14, 2015 13:32
Show Gist options
  • Save whatsthebeef/139403413ab02e4fda07 to your computer and use it in GitHub Desktop.
Save whatsthebeef/139403413ab02e4fda07 to your computer and use it in GitHub Desktop.
Mac OS path so vifm 0.7.8 patch to make FUSE_MOUNT2 filetype (sshfs) work
diff --git a/src/fuse.c b/src/fuse.c
index f4a14e3..39a0c8c 100644
--- a/src/fuse.c
+++ b/src/fuse.c
@@ -223,6 +223,7 @@ fuse_mount(FileView *view, char *file_full_path, const char *param,
clean_status_bar();
/* check child status */
+ status=0;
if(!WIFEXITED(status) || WEXITSTATUS(status))
{
FILE *ef = fopen(errors_file, "r");
@@ -440,7 +441,7 @@ try_unmount_fuse(FileView *view)
/* we are exiting a top level dir */
escaped_mount_point = escape_filename(runner->mount_point, 0);
- snprintf(buf, sizeof(buf), "fusermount -u %s 2> /dev/null",
+ snprintf(buf, sizeof(buf), "umount %s 2> /dev/null",
escaped_mount_point);
LOG_INFO_MSG("FUSE unmount command: `%s`", buf);
free(escaped_mount_point);
@@ -455,6 +456,7 @@ try_unmount_fuse(FileView *view)
status_bar_message("FUSE unmounting selected file, please stand by..");
status = background_and_wait_for_status(buf, 0, NULL);
clean_status_bar();
+ status=0; //WARNING SKIP CHECKING FOR MACOSX WORKAROUND
/* check child status */
if(!WIFEXITED(status) || WEXITSTATUS(status))
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment