We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Logfile can be set to /dev/stdout
Instead of doing fchown every time, check permissions and do it if needed. This breaks using /dev/stdout which is root owned but it's 777
hitch/src/hitch.c
Line 4192 in c8033c3
Do fchown only if write is not possible
This makes it hard to make sure container logs to stdout instead of stderr
Docker container - alpine:3.11, run as non-priviledged user
The text was updated successfully, but these errors were encountered:
log: Avoid fchown(3) if not needed
8cba2f7
Fixes: #371
fcf0e5b
No branches or pull requests
Expected Behavior
Logfile can be set to /dev/stdout
Current Behavior
Instead of doing fchown every time, check permissions and do it if needed. This breaks using /dev/stdout which is root owned but it's 777
hitch/src/hitch.c
Line 4192 in c8033c3
Possible Solution
Do fchown only if write is not possible
Steps to Reproduce (for bugs)
Context
This makes it hard to make sure container logs to stdout instead of stderr
Your Environment
Docker container - alpine:3.11, run as non-priviledged user
The text was updated successfully, but these errors were encountered: