-
Notifications
You must be signed in to change notification settings - Fork 396
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
Fix /etc/ lossage in CreateRootfs #2746
Conversation
Codecov ReportPatch has no changes to coverable lines.
📢 Thoughts on this report? Let us know!. |
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.
Thanks!
Can you run gofmt, then I can approve this.
2dd120f
to
b9ec913
Compare
Rebased and hopefully fixed the issues. |
With this PR, CreateRootfs() in root_linux.go uses the NoFollowSymlinks option to correctly handle broken symlinks found in /etc when setting up the filesystems. Signed-off-by: Robert Kroeger <rjkroege@liqui.org>
oops. Now fixed. I apparently should automate this "signed off" thing. |
@rminnich Can you take another look. Also: the failing |
it certainly looks fine, I wonder if your fix found a broken test? |
@rminnich with your merge, all the tests pass except the in-the-noise change to coverage. LGTM maybe or should I go write some tests? 😊 |
With this PR,
CreateRootfs()
inroot_linux.go
uses theNoFollowSymlinks
option to correctly handle broken symlinks found in/etc
when setting up the filesystems.\n