forked from qt-creator/qt-creator
Gerrit: Assure trailing newline when saving .netrc
Change-Id: I919868c0d58f1ac14c1ae15479b11ce15043e042 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
1c36a6b274
commit
9a977a23dd
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user