Skip to content

respect umask for files / dirs (1.1) #6430

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

Merged

Conversation

ThomasWaldmann
Copy link
Member

@ThomasWaldmann ThomasWaldmann commented Mar 9, 2022

backport of #6403.

…up#6400

we tried to be very private / secure here, but that created the issue
that a less secure umask (like e.g. 0o007) just did not work.

to make the umask work, we must start from 0o777 mode and let the
umask do its work, like e.g. 0o777 & ~0o007 --> 0o770.

with borg's default umask of 0o077, it usually ends up being 0o700,
so only permissions for the user (not group, not others).
@codecov-commenter
Copy link

Codecov Report

Merging #6430 (988a27c) into 1.1-maint (70a3c14) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##           1.1-maint    #6430      +/-   ##
=============================================
- Coverage      79.69%   79.69%   -0.01%     
=============================================
  Files             27       27              
  Lines          10511    10515       +4     
  Branches        2151     2151              
=============================================
+ Hits            8377     8380       +3     
- Misses          1609     1610       +1     
  Partials         525      525              
Impacted Files Coverage Δ
src/borg/helpers.py 87.36% <100.00%> (ø)
src/borg/platform/base.py 82.64% <100.00%> (+0.59%) ⬆️
src/borg/cache.py 85.33% <0.00%> (-0.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70a3c14...988a27c. Read the comment docs.

@ThomasWaldmann ThomasWaldmann merged commit 111a420 into borgbackup:1.1-maint Mar 9, 2022
@ThomasWaldmann ThomasWaldmann deleted the fix-savefile-mode-1.1 branch March 9, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants