-
Notifications
You must be signed in to change notification settings - Fork 76
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
#89: Implemented packArchivePosixMask mechanism #90
base: main
Are you sure you want to change the base?
Conversation
Sorry for the delay of response. I have failed to notice this PR. Thanks |
Some(mask) | ||
} | ||
|
||
def posixMaskNone(_unused: File): Option[Int] = |
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.
This function is not used.
For your purpose, I think having a setting And the default flow is simple as follows:
Rather than defining multiple functions (posixXXX, posixNone, etc.) for setting posix permission, it would be better to define a function as follows (pseudo code):
And also, rather than using Int, allowing to use String (posix mask string)] might be easier to use. |
I'll have a look. The functions are provided to be assigned as posixArchiveFilePermission Octal mask definition tends to be more common than "rwxrwx" style. Is that On 9 November 2015 at 00:28, Taro L. Saito [email protected] wrote:
Cheers, |
When you say posix mask string, do you mean the octal representation of On 9 November 2015 at 10:56, Nicola Orrù [email protected] wrote:
Cheers, |
Yes. And it would be better to allow "755" too. |
Ok, sounds sensible :) On 9 November 2015 at 20:59, Taro L. Saito [email protected] wrote:
Cheers, |
Hi,
I managed to implement a possible solution at #89.
The following setting implements the desired behaviour
packArchivePosixMask := posixMaskFromFilesystem
The following setting implements the default behaviour
The following setting prevents masks from being set in the archive
packArchivePosixMask := posixMaskNone
It should be ready for you to review, adjust and integrate
Cheers
Nico