Skip to content

Commit 64f8ffb

Browse files
committed
Preserve permissions when passed in explicitly
1 parent cc7bdc5 commit 64f8ffb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/module_writer.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,6 @@ where
561561
}
562562
}
563563

564-
#[cfg(unix)]
565564
#[inline]
566565
fn default_permission(executable: bool) -> u32 {
567566
match executable {
@@ -570,12 +569,6 @@ fn default_permission(executable: bool) -> u32 {
570569
}
571570
}
572571

573-
#[cfg(not(unix))]
574-
#[inline]
575-
fn default_permission(_executable: bool) -> u32 {
576-
0o644
577-
}
578-
579572
fn expand_compressed_tag(tag: &str) -> impl Iterator<Item = String> + '_ {
580573
tag.split('-')
581574
.map(|component| component.split('.'))

0 commit comments

Comments
 (0)