summaryrefslogtreecommitdiff
path: root/cmd/podman/save.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/save.go')
-rw-r--r--cmd/podman/save.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/save.go b/cmd/podman/save.go
index e41e95f69..ce82b588a 100644
--- a/cmd/podman/save.go
+++ b/cmd/podman/save.go
@@ -87,6 +87,9 @@ func saveCmd(c *cli.Context) error {
return errors.Errorf("refusing to save to terminal. Use -o flag or redirect")
}
}
+ if err := validateFileName(output); err != nil {
+ return err
+ }
var dst, manifestType string
switch c.String("format") {