treefile: Fix octal mode for rojig spec too

Going to need to see if clippy or something has a way for us
to reject leading `0`.

Closes: #1756
Approved by: jlebon
This commit is contained in:
Colin Walters 2019-02-10 19:56:40 +00:00 committed by Atomic Bot
parent 9ca74d0c31
commit 85ab9c3181

View File

@ -399,7 +399,7 @@ impl Treefile {
.unwrap_or(r.summary.as_str());
let name: String = format!("{}.spec", r.name);
{
let mut f = workdir.write_file(name.as_str(), 0644)?;
let mut f = workdir.write_file(name.as_str(), 0o644)?;
write!(
f,
r###"