Skip to content

Commit 6b3ad03

Browse files
committed
Preserve permissions when passed in explicitly
1 parent df0fc6b commit 6b3ad03

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
@@ -559,7 +559,6 @@ where
559559
}
560560
}
561561

562-
#[cfg(unix)]
563562
#[inline]
564563
fn default_permission(executable: bool) -> u32 {
565564
match executable {
@@ -568,12 +567,6 @@ fn default_permission(executable: bool) -> u32 {
568567
}
569568
}
570569

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

0 commit comments

Comments
 (0)