mirror of
https://github.com/containers/podman.git
synced 2025-10-20 12:43:58 +08:00
vendor latest c/common from main
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
3
vendor/github.com/containers/common/pkg/ssh/connection_golang.go
generated
vendored
3
vendor/github.com/containers/common/pkg/ssh/connection_golang.go
generated
vendored
@ -10,7 +10,6 @@ import (
|
||||
"net/url"
|
||||
"os"
|
||||
"os/user"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"strings"
|
||||
@ -313,7 +312,7 @@ func ValidateAndConfigure(uri *url.URL, iden string, insecureIsMachineConnection
|
||||
if !errors.Is(err, os.ErrNotExist) {
|
||||
return nil, err
|
||||
}
|
||||
keyDir := path.Dir(keyFilePath)
|
||||
keyDir := filepath.Dir(keyFilePath)
|
||||
if err := fileutils.Exists(keyDir); errors.Is(err, os.ErrNotExist) {
|
||||
if err := os.Mkdir(keyDir, 0o700); err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user