dustymabe / vagrant-sshfs

SSHFS synced folder implementation for Vagrant.
GNU General Public License v2.0
225 stars 33 forks source link

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

Closed aidanharris closed 6 years ago

aidanharris commented 6 years ago

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
dustymabe commented 6 years ago

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