Skip to content

Commit

Permalink
Fixed #1264 - permission error in kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
hashfunc committed Feb 20, 2025
1 parent 299ec93 commit 367850e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warpgate-common/src/helpers/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn maybe_apply_permissions<P: AsRef<Path>>(
permissions: std::fs::Permissions,
) -> std::io::Result<()> {
let current = std::fs::metadata(&path)?.permissions();
if current != permissions {
if (current.mode() & 0o777) != permissions.mode() {
std::fs::set_permissions(path, permissions)?;
}
Ok(())
Expand Down

0 comments on commit 367850e

Please sign in to comment.