dustymabe/vagrant-sshfs

Fails to find sftp-server binary on Gentoo Linux (patch attached)

Closed this issue · 1 comments

On Gentoo the sftp-server binary is stored at /usr/lib/misc/sftp-server

diff --git a/lib/vagrant-sshfs/synced_folder.rb b/lib/vagrant-sshfs/synced_folder.rb
index b12f5cd..9bca486 100644
--- a/lib/vagrant-sshfs/synced_folder.rb
+++ b/lib/vagrant-sshfs/synced_folder.rb
@@ -113,6 +113,7 @@ module VagrantPlugins
           ENV['PATH'] += ':/usr/libexec/openssh' # Linux (Red Hat Family)
           ENV['PATH'] += ':/usr/lib/openssh'     # Linux (Debian Family)
           ENV['PATH'] += ':/usr/lib/ssh'         # Linux (Arch Linux Family)
+          ENV['PATH'] += ':/usr/lib/misc'        # Linux (Gentoo Family)
           ENV['PATH'] += ':/usr/libexec/'        # Mac OS X
         end
 

ok, merged this in but do note that it does not add guest support for gentoo guests. mostly just makes sure that sftp-server can be found on a gentoo host.

thanks @aldanharris for the contribution