From 19a617eaab02c27b0975333bb2c1db0998ce4d59 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Wed, 24 Aug 2022 09:28:39 -0500 Subject: Allow colons in windows file paths the `podman save` command was failing on windows due to the use of a colon between the drive letter and first directory. the check was intended for Linux and not windows. Fixes #15247 [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude --- cmd/podman/parse/net.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'cmd/podman/parse/net.go') diff --git a/cmd/podman/parse/net.go b/cmd/podman/parse/net.go index 9228c7127..a5c7a0d95 100644 --- a/cmd/podman/parse/net.go +++ b/cmd/podman/parse/net.go @@ -151,15 +151,6 @@ func parseEnvOrLabelFile(envOrLabel map[string]string, filename, configType stri return scanner.Err() } -// ValidateFileName returns an error if filename contains ":" -// as it is currently not supported -func ValidateFileName(filename string) error { - if strings.Contains(filename, ":") { - return fmt.Errorf("invalid filename (should not contain ':') %q", filename) - } - return nil -} - // ValidURL checks a string urlStr is a url or not func ValidURL(urlStr string) error { url, err := url.ParseRequestURI(urlStr) -- cgit v1.2.3-54-g00ecf