-
Notifications
You must be signed in to change notification settings - Fork 74
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
[#635] client_init free functions can now suppress overwriting old .irodsA #663
Conversation
40e3e20
to
98c8e9f
Compare
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.
Just had one point of confusion around a comment. Otherwise, seems like this is close to ready
irods/test/scripts/test002_write_native_credentials_to_secrets_file.bats
Outdated
Show resolved
Hide resolved
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.
Looks good to me.
Are the tests passing?
Yes! |
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.
I think this is ready for squashing given that the review comments are all resolved and the tests are passing.
Squash it! |
e4a38d0
to
53e80c9
Compare
Squashed; changed reference to test003 test script in commit message to be more descriptive. |
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.
Looks good. Let's # it
#'d |
Just noticed that the commit linking to #517 should be updated to reference a new issue for the 3.0.0 milestone. The issue is closed and exists in a closed milestone. So, please open a new issue for the problem being addressed in "pam_password irodsA and login test corrected for iRODS 4.2" and link that instead. Thanks |
Ok ... this is now done. |
Thanks! |
A new parameter named "overwrite", determines whether an old file will be overwritten, and defaults to True.
Also: we add a helper function
_open_for_protected_content
, a context manager which encapsulates the opening for write, writing, and closing of a file with protected content (ie only readable by the owner, using a umask of 077 octal by default).