From 60eb9cfae60807018b5c607614e04a4df17d84e9 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Thu, 13 Nov 2014 17:07:48 +0100 Subject: [PATCH] Use the correct file to write things into --- src/modules/users/SetHostNameJob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/users/SetHostNameJob.cpp b/src/modules/users/SetHostNameJob.cpp index 349f1b034..9658b0fb5 100644 --- a/src/modules/users/SetHostNameJob.cpp +++ b/src/modules/users/SetHostNameJob.cpp @@ -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" ) );