Skip to content

Commit

Permalink
fix: set 644 mode for spec file (#4)
Browse files Browse the repository at this point in the history
* Set 444 permissions for spec file

* Bump version
  • Loading branch information
vklachkov authored Sep 27, 2024
1 parent bd1302c commit d2d0a9b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "baedeker"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
description = "Substrate network orchestration framework"
license = "MIT"
Expand Down
4 changes: 3 additions & 1 deletion src/spec_builder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{
fs::{metadata, read_dir},
fs::{self, metadata, read_dir},
io::Write,
os::unix::fs::PermissionsExt,
path::PathBuf,
process::{Command, Stdio},
result,
Expand Down Expand Up @@ -166,6 +167,7 @@ impl SpecBuilder for DockerSpecBuilder {
spec: String,
) -> Result<Vec<u8>> {
let mut tempfile = Builder::new();
tempfile.permissions(fs::Permissions::from_mode(0o644));
if let Some(prefix) = &spec_file_prefix {
tempfile.prefix(prefix);
}
Expand Down

0 comments on commit d2d0a9b

Please sign in to comment.