-
Notifications
You must be signed in to change notification settings - Fork 202
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
Do not validate paths on remote platforms #166
Conversation
@baude PTAL |
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.
LGTM
func (c *EngineConfig) validatePaths() error { | ||
// Relative paths can cause nasty bugs, because core paths we use could | ||
// shift between runs (or even parts of the program - the OCI runtime | ||
// uses a different working directory than we do, for example. |
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.
missing an ending paren )
pkg/config/config_local.go
Outdated
@@ -0,0 +1,77 @@ | |||
// +build !remoteclient |
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.
This means Podman has to use this too but libpod is using ABISupport
. @baude, cool with that?
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.
yeah i think it should probably be ABI support ... or be fenced by os !linux
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.
!linux
would be my favourite option.
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.
decided to use remote
@rhatdan patch works .. please update and lets get merged. |
Modify validate functions to work on a remote clients. Any of the path checks will not work on remote machines or make sense on remote clients. Therefore they should not be checked. Signed-off-by: Daniel J Walsh <[email protected]>
Modify validate functions to work on a remote clients.
Any of the path checks will not work on remote machines or make
sense on remote clients. Therefore they should not be checked.
Signed-off-by: Daniel J Walsh [email protected]