summaryrefslogtreecommitdiff
path: root/cmd/podman/export.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/export.go')
-rw-r--r--cmd/podman/export.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/export.go b/cmd/podman/export.go
index eaf1ab39f..16c1f5c9b 100644
--- a/cmd/podman/export.go
+++ b/cmd/podman/export.go
@@ -56,6 +56,9 @@ func exportCmd(c *cli.Context) error {
return errors.Errorf("refusing to export to terminal. Use -o flag or redirect")
}
}
+ if err := validateFileName(output); err != nil {
+ return err
+ }
ctr, err := runtime.LookupContainer(args[0])
if err != nil {