-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Windows safe default permissions (fixes ACL errors/performance) #911
feat: Windows safe default permissions (fixes ACL errors/performance) #911
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: domsleee The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cc5f026
to
d88a55f
Compare
Anyway to help this forward? |
sorry for the late reply, I will look into this recently /assign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@domsleee really sorry for the late reply, thanks so much for the great work! it LGTM mostly but only a nit
src/meta/mod.rs
Outdated
mod size; | ||
mod symlink; | ||
mod windows_attributes; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about #[cfg(windows)]
here, and drop the #cfg
inside windows_attributes
?
src/meta/windows_attributes.rs
Outdated
@@ -0,0 +1,126 @@ | |||
#[cfg(windows)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can drop all the #[cfg(windows)]
in this file, if we set it in mod.rs
Signed-off-by: Wei Zhang <kweizh@gmail.com>
hi @domsleee, as it has been some time since you responded, I have pushed a commit to make this PR go forward. hope you don't mide |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #911 +/- ##
==========================================
- Coverage 85.74% 84.63% -1.11%
==========================================
Files 51 53 +2
Lines 5003 5078 +75
==========================================
+ Hits 4290 4298 +8
- Misses 713 780 +67 ☔ View full report in Codecov by Sentry. |
Hi @zwpaper, sorry I missed your review - thanks for reviewing and helping out with this PR 🎉 |
Fixes: #200 by implementing #866 as the default permission setting for windows.
Context
The current default (
--permission rwx
) uses ACL on windows, which can throw errors and has performance problems, described in #200 and also in #882 (comment):Suggestion
--permission attributes
is introducedPrior art
eza -al
)Checklist
cargo fmt
Screenshot & comparison