From d49b89d131b5ef87af37c02f4cb280cf5d339147 Mon Sep 17 00:00:00 2001 From: Tomas Mozes Date: Fri, 16 Sep 2016 08:51:49 +0200 Subject: [PATCH] app-emulation/vagrant: set permissions on authorized_keys, fixes #592996 Closes: #2339 Bugs: #592996 Package-Manager: portage-2.3.0 --- .../vagrant/{vagrant-1.8.5.ebuild => vagrant-1.8.5-r1.ebuild} | 4 ++++ 1 file changed, 4 insertions(+) rename app-emulation/vagrant/{vagrant-1.8.5.ebuild => vagrant-1.8.5-r1.ebuild} (92%) diff --git a/app-emulation/vagrant/vagrant-1.8.5.ebuild b/app-emulation/vagrant/vagrant-1.8.5-r1.ebuild 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 52460de40fb8..63e8ad6737ec 100644 --- a/app-emulation/vagrant/vagrant-1.8.5.ebuild +++ b/app-emulation/vagrant/vagrant-1.8.5-r1.ebuild @@ -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() { -- 2.26.2