-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
nohup: restrict nohup.out permissions to 0600 #10032
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
base: main
Are you sure you want to change the base?
Conversation
|
Could you please add a test to make sure we don't regress in the future? |
|
I added two tests:
|
|
Please run cargo fmt |
|
GNU testsuite comparison: |
e315f9c to
87dbd01
Compare
src/uu/nohup/src/nohup.rs
Outdated
| homeout.push(NOHUP_OUT); | ||
| let homeout_str = homeout.to_str().unwrap(); | ||
| match OpenOptions::new().create(true).append(true).open(&homeout) { | ||
| match OpenOptions::new() |
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.
please create a function for OpenOptions::new()
as it is duplicated from line 140
785202c to
d1e3ffd
Compare
|
GNU testsuite comparison: |
|
A test is missing |
d1e3ffd to
237b8d5
Compare
|
GNU testsuite comparison: |
Fixes #10021