diff options
Diffstat (limited to 'cmd/podman/import.go')
-rw-r--r-- | cmd/podman/import.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/import.go b/cmd/podman/import.go index 5a4fa45d9..446516024 100644 --- a/cmd/podman/import.go +++ b/cmd/podman/import.go @@ -75,6 +75,10 @@ func importCmd(c *cli.Context) error { return errors.Errorf("too many arguments. Usage TARBALL [REFERENCE]") } + if err := validateFileName(source); err != nil { + return err + } + changes := v1.ImageConfig{} if c.IsSet("change") { changes, err = util.GetImageConfig(c.StringSlice("change")) |