vagrant-sshfs 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/build.sh +1 -1
- data/lib/vagrant-sshfs/cap/guest/centos/sshfs_client.rb +3 -2
- data/lib/vagrant-sshfs/cap/guest/linux/sshfs_forward_mount.rb +2 -2
- data/lib/vagrant-sshfs/cap/host/darwin/sshfs_reverse_mount.rb +1 -1
- data/lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb +1 -1
- data/lib/vagrant-sshfs/synced_folder.rb +1 -0
- data/lib/vagrant-sshfs/version.rb +1 -1
- data/test/misc/README.txt +11 -0
- data/test/misc/Vagrantfile +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67c5b84b4c824dd5ddedd3971d74d64cd565b0343333f3dfe3c314e2d1714c5a
|
4
|
+
data.tar.gz: f62e9fedb4e7944b87b5ce64b64df2c9b0e155dc72a8bf4d8a087da3f2319a11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 789c76020230299d03c670b595b4726c2143168c8dd3da1410d64356e81db7a8bb9b85875499b5221e1ef269affba39a7dd00c231dd197fcda201ca2dffcd41c
|
7
|
+
data.tar.gz: 9437171f5eebd043e06f500d3d2007a4c61b0bcfbaee03069b15eef77f06e36d749e17954695e04af7375c1be57385fba0842bb585a5769ac32d2d774efd57a0
|
data/Gemfile
CHANGED
@@ -6,11 +6,11 @@ group :development do
|
|
6
6
|
# We depend on Vagrant for development, but we don't add it as a
|
7
7
|
# gem dependency because we expect to be installed within the
|
8
8
|
# Vagrant environment itself using `vagrant plugin`.
|
9
|
-
gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git", :ref => 'v2.2.
|
9
|
+
gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git", :ref => 'v2.2.16'
|
10
10
|
end
|
11
11
|
|
12
12
|
group :plugins do
|
13
13
|
# Add vagrant-libvirt plugin here, otherwise you won't be able to
|
14
14
|
# use libvirt as a provider when you execute `bundle exec vagrant up`
|
15
|
-
gem "vagrant-libvirt" , '0.
|
15
|
+
gem "vagrant-libvirt" , '0.4.1'
|
16
16
|
end
|
data/build.sh
CHANGED
@@ -6,9 +6,10 @@ module VagrantPlugins
|
|
6
6
|
|
7
7
|
case machine.guest.capability("flavor")
|
8
8
|
when :centos_8
|
9
|
-
# No need to install epel. fuse-sshfs comes from the
|
9
|
+
# No need to install epel. fuse-sshfs comes from the powertools repo
|
10
10
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1758884
|
11
|
-
|
11
|
+
# https://github.com/dustymabe/vagrant-sshfs/issues/123
|
12
|
+
machine.communicate.sudo("yum -y install --enablerepo=powertools fuse-sshfs")
|
12
13
|
when :centos_7, :centos # centos7 and centos6
|
13
14
|
# Install fuse-sshfs from epel
|
14
15
|
if !epel_installed(machine)
|
@@ -288,8 +288,8 @@ module VagrantPlugins
|
|
288
288
|
:thread_inherit => true,
|
289
289
|
:startup_info => {:stdin => w1, :stdout => r2, :stderr => f2})
|
290
290
|
else
|
291
|
-
p1 = spawn(sftp_server_cmd, :out => w2, :in => r1, :err => f1, :pgroup => true)
|
292
|
-
p2 = spawn(ssh_cmd, :out => w1, :in => r2, :err => f2, :pgroup => true)
|
291
|
+
p1 = spawn(sftp_server_cmd, :out => w2, :in => r1, :err => f1, :pgroup => true, :close_others => true)
|
292
|
+
p2 = spawn(ssh_cmd, :out => w1, :in => r2, :err => f2, :pgroup => true, :close_others => true)
|
293
293
|
|
294
294
|
# Detach from the processes so they will keep running
|
295
295
|
Process.detach(p1)
|
@@ -120,7 +120,7 @@ module VagrantPlugins
|
|
120
120
|
:thread_inherit => true,
|
121
121
|
:startup_info => {:stdin => w2, :stdout => r1, :stderr => f1})
|
122
122
|
else
|
123
|
-
p1 = spawn(sshfs_cmd, :out => f1, :err => f1, :pgroup => true)
|
123
|
+
p1 = spawn(sshfs_cmd, :out => f1, :err => f1, :pgroup => true, :close_others => true)
|
124
124
|
Process.detach(p1) # Detach so process will keep running
|
125
125
|
end
|
126
126
|
|
@@ -117,7 +117,7 @@ module VagrantPlugins
|
|
117
117
|
:thread_inherit => true,
|
118
118
|
:startup_info => {:stdin => w2, :stdout => r1, :stderr => f1})
|
119
119
|
else
|
120
|
-
p1 = spawn(sshfs_cmd, :out => f1, :err => f1, :pgroup => true)
|
120
|
+
p1 = spawn(sshfs_cmd, :out => f1, :err => f1, :pgroup => true, :close_others => true)
|
121
121
|
Process.detach(p1) # Detach so process will keep running
|
122
122
|
end
|
123
123
|
|
@@ -110,6 +110,7 @@ module VagrantPlugins
|
|
110
110
|
ENV['PATH'] += ';C:\cygwin64\usr\sbin'
|
111
111
|
end
|
112
112
|
else
|
113
|
+
ENV['PATH'] += ':/usr/libexec/ssh' # Linux (openSUSE/SUSE Family)
|
113
114
|
ENV['PATH'] += ':/usr/libexec/openssh' # Linux (Red Hat Family)
|
114
115
|
ENV['PATH'] += ':/usr/lib/openssh' # Linux (Debian Family)
|
115
116
|
ENV['PATH'] += ':/usr/lib/ssh' # Linux (Arch Linux Family)
|
data/test/misc/README.txt
CHANGED
@@ -13,6 +13,11 @@ export THIRD_PARTY_HOST='192.168.121.73'
|
|
13
13
|
export THIRD_PARTY_HOST_USER='vagrant'
|
14
14
|
export THIRD_PARTY_HOST_PASS='vagrant'
|
15
15
|
|
16
|
+
# Open an extra file descriptor to test it is not passed onto child processes
|
17
|
+
# https://github.com/dustymabe/vagrant-sshfs/issues/120
|
18
|
+
tmpfile=$(mktemp)
|
19
|
+
exec {extra_fd}<> "$tmpfile"
|
20
|
+
|
16
21
|
# Next vagrant up - will do 4 mounts
|
17
22
|
# - slave
|
18
23
|
# - slave with sym link
|
@@ -34,3 +39,9 @@ Testing reverse mount!
|
|
34
39
|
# We are printing out the machine-id under each mount. The first two
|
35
40
|
should be the same, because they are from the same machine. The last
|
36
41
|
two should be different.
|
42
|
+
|
43
|
+
# Close our file descriptor. No other process should be using it
|
44
|
+
exec {extra_fd}>&-
|
45
|
+
if lsof -wn -d $extra_fd | grep "$tmpfile"; then
|
46
|
+
echo "Failure: there are processes running that hold an inherited file descriptor"
|
47
|
+
fi
|
data/test/misc/Vagrantfile
CHANGED
@@ -22,7 +22,7 @@ Vagrant.configure(2) do |config|
|
|
22
22
|
config.vm.synced_folder "/tmp/reverse_mount_etc/", "/etc", type: "sshfs", reverse: true
|
23
23
|
|
24
24
|
host = 'sshfs-tests'
|
25
|
-
box = 'fedora/
|
25
|
+
box = 'fedora/34-cloud-base'
|
26
26
|
|
27
27
|
config.vm.define host do | tmp |
|
28
28
|
tmp.vm.hostname = host
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-sshfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dusty Mabe
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: win32-process
|
@@ -99,7 +99,7 @@ homepage: https://github.com/dustymabe/vagrant-sshfs
|
|
99
99
|
licenses:
|
100
100
|
- GPL-2.0
|
101
101
|
metadata: {}
|
102
|
-
post_install_message:
|
102
|
+
post_install_message:
|
103
103
|
rdoc_options: []
|
104
104
|
require_paths:
|
105
105
|
- lib
|
@@ -114,8 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
118
|
-
signing_key:
|
117
|
+
rubygems_version: 3.1.6
|
118
|
+
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: 'A Vagrant synced folder plugin that mounts folders via SSHFS. This is the
|
121
121
|
successor to Fabio Kreusch''s implementation: https://github.com/fabiokr/vagrant-sshfs'
|