Repository navigation
ParentMain/nsenter: do not fail if getwd errors - #3329
Merged
Merged
Conversation
apostasie
marked this pull request as draft
August 18, 2024 18:38
apostasie
force-pushed
the
b-dev-3328-getwd-nsenter
branch
from
August 18, 2024 22:35
276b75f to
d3a8c48
Compare
apostasie
marked this pull request as ready for review
August 18, 2024 23:06
apostasie
force-pushed
the
b-dev-3328-getwd-nsenter
branch
2 times, most recently
from
August 18, 2024 23:39
40f4bc0 to
ad6d20c
Compare
AkihiroSuda
reviewed
Aug 19, 2024
apostasie
force-pushed
the
b-dev-3328-getwd-nsenter
branch
from
August 20, 2024 04:18
ad6d20c to
e0d0079
Compare
Contributor
Author
|
Comment addressed. |
djdongjin
reviewed
Aug 21, 2024
Signed-off-by: apostasie <[email protected]>
apostasie
force-pushed
the
b-dev-3328-getwd-nsenter
branch
from
August 21, 2024 06:04
e0d0079 to
a1bd476
Compare
Contributor
Author
Yes, it does fix the issue. |
fahedouch
reviewed
Aug 21, 2024
| if err != nil { | ||
| log.L.WithError(err).Warn("unable to determine working directory") | ||
| } else { | ||
| args = append(args, "-w"+wd) |
Member
There was a problem hiding this comment.
IMO we may even set the working directory after nsenter with --wdns
Contributor
Author
There was a problem hiding this comment.
ah - you mean, in case getwd does NOT error, right?
Honestly, I would rather focus efforts on re-exec-ing instead of tweaking nsenter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To fix #3328
It is not clear to me if there would be side-effects to this.
nsenter specialists opinion highly welcome.