Commit 00a4f03f authored by Nagy Tibor's avatar Nagy Tibor

tar: Fix decimal/octal mix up at file permissions

This kind of bugs could be a great candidate for a new clippy lint
(non-octal literals used for std functions expecting permission bits.)
parent ca55d816
......@@ -100,7 +100,7 @@ fn extract_inner<T: Read>(ar: &mut Archive<T>, verbose: bool, strip: usize) -> R
.write(true)
.truncate(true)
.create(true)
.mode(entry.header().mode().unwrap_or(644))
.mode(entry.header().mode().unwrap_or(0o644))
.open(&path)?
};
copy(&mut entry, &mut file)?;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment