app-emulation/vagrant: set permissions on authorized_keys, fixes #592996
authorTomas Mozes <hydrapolic@gmail.com>
Fri, 16 Sep 2016 06:51:49 +0000 (08:51 +0200)
committerAmy Winston <amynka@gentoo.org>
Tue, 27 Sep 2016 14:54:40 +0000 (16:54 +0200)
Closes: #2339
Bugs: #592996

Package-Manager: portage-2.3.0

app-emulation/vagrant/vagrant-1.8.5-r1.ebuild [moved from app-emulation/vagrant/vagrant-1.8.5.ebuild with 92% similarity]

similarity index 92%
rename from app-emulation/vagrant/vagrant-1.8.5.ebuild
rename to app-emulation/vagrant/vagrant-1.8.5-r1.ebuild
index 52460de40fb831042668d3b7ba6a2fef0d47ec50..63e8ad6737ec0102355641f0faba2123c10bf633 100644 (file)
@@ -72,6 +72,10 @@ all_ruby_prepare() {
 
        # fix rvm issue (bug #474476)
        epatch "${FILESDIR}"/${PN}-1.8.1-rvm.patch
+
+       # https://github.com/mitchellh/vagrant/issues/7610 (#592996)
+       sed -e 's/bsd/linux/g ; 57i \              chmod 0600 ~/.ssh/authorized_keys' \
+               -i plugins/guests/linux/cap/public_key.rb || die
 }
 
 all_ruby_install() {