Merge pull request #13329 from chrisroberts/key-line-endings

Open private key file in binary mode when writing
This commit is contained in:
Chris Roberts 2024-01-12 17:09:50 -08:00 committed by GitHub
commit 2b7a200383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ module VagrantPlugins
# Write out the private key in the data dir so that the
# machine automatically picks it up.
@machine.data_dir.join("private_key").open("w+") do |f|
@machine.data_dir.join("private_key").open("wb+") do |f|
f.write(priv)
end