Use the correct file to write things into

This commit is contained in:
Rohan Garg 2014-11-13 17:07:48 +01:00
parent 0f9496babe
commit 60eb9cfae6

View File

@ -65,7 +65,7 @@ Calamares::JobResult SetHostNameJob::exec()
hostfile.close();
QFile hostsfile( destDir + "/etc/hosts" );
if ( !hostfile.open( QFile::WriteOnly ) )
if ( !hostsfile.open( QFile::WriteOnly ) )
{
cLog() << "Can't write to hosts file";
return Calamares::JobResult::error( tr( "Cannot write hostname to target system" ) );