Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aidanharris opened this issue Feb 13, 2018 · 1 comment
Closed

Comments

@aidanharris
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants