Skip to content

Commit

Permalink
Add a newline to the end of resolv.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Feb 14, 2018
1 parent a12480d commit fde2018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrapper/setup.rs
Expand Up @@ -255,7 +255,7 @@ pub fn setup_base_filesystem(project_root: &Path, settings: &MergedSettings)
File::create("/tmp/resolv.conf")
.and_then(|mut f|
// redirect to a gateway IP
write!(&mut f, "nameserver 172.23.255.1"))
writeln!(&mut f, "nameserver 172.23.255.1"))
.map_err(|e| format!("Can't create temporary resolv.conf: {}", e))?;
Path::new("/tmp/resolv.conf")
} else {
Expand Down

0 comments on commit fde2018

Please sign in to comment.