vagrant-sshfs 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6513280765fd1bba7182361d9f45354f46bf094d4880da5aa53f37f25fdaab3b
4
- data.tar.gz: 8eda8064052fca6390542acf1ce1a63aa98e04f4c69e8c9a66ff197cc868efcc
3
+ metadata.gz: 67c5b84b4c824dd5ddedd3971d74d64cd565b0343333f3dfe3c314e2d1714c5a
4
+ data.tar.gz: f62e9fedb4e7944b87b5ce64b64df2c9b0e155dc72a8bf4d8a087da3f2319a11
5
5
  SHA512:
6
- metadata.gz: b7541dfccd42e153b37da97bc8d84427ca0c87674b0d2333861d98fb946b4ca3847d9c51ac0bb511525207554b21c075a9e22bba3fd6699f03737d877abad24d
7
- data.tar.gz: 2e494e523004ded8fcd6644bcdf951728a534110df6d898a2fd55350f7df64842ac089483783c2433d76c4478e30e9185fbde16fff7280a09675749f47da4385
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'
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.0.45'
15
+ gem "vagrant-libvirt" , '0.4.1'
16
16
  end
data/build.sh CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash -x
2
2
  set -ex
3
3
 
4
- ctr=$(buildah from registry.fedoraproject.org/fedora:31)
4
+ ctr=$(buildah from registry.fedoraproject.org/fedora:33)
5
5
 
6
6
  rpms=(
7
7
  make gcc ruby ruby-devel redhat-rpm-config # for building gems
@@ -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 PowerTools repo
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
- machine.communicate.sudo("yum -y install --enablerepo=PowerTools fuse-sshfs")
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)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module SyncedFolderSSHFS
3
- VERSION = "1.3.5"
3
+ VERSION = "1.3.6"
4
4
  end
5
5
  end
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
@@ -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/32-cloud-base'
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.5
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: 2020-06-29 00:00:00.000000000 Z
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.0.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'