Gerrit: Assure trailing newline when saving .netrc

Change-Id: I919868c0d58f1ac14c1ae15479b11ce15043e042
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2017-03-03 06:51:48 +01:00
committed by Orgad Shaneh
parent 1c36a6b274
commit 9a977a23dd

View File

@@ -137,7 +137,7 @@ bool AuthenticationDialog::setupCredentials()
out << line << endl;
}
if (!found)
out << "machine " << m_server->host << " login " << user << " password " << password;
out << "machine " << m_server->host << " login " << user << " password " << password << endl;
Utils::FileSaver saver(m_netrcFileName, QFile::WriteOnly | QFile::Truncate | QFile::Text);
saver.write(netrcContents.toUtf8());
return saver.finalize();