spiegel_podman/cmd/podman/common
Paul Holzinger 370e1132ce
completion: fix panic in simplePathJoinUnix()
When we do path completion in images a user could try to complete a
simple relative path, e.g. podman run $IMAGE e... should complete to etc
if this path exists in the image. Right now we panic in this case as the
current check didn't account for an empty string in simplePathJoinUnix().
In such a case return the path directly because we can not alter what
the user typed on the cli and must return a path without slash as well
in order for the shell to suggest the completion.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2209809

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-05-30 16:09:19 +02:00
..
completion.go completion: fix panic in simplePathJoinUnix() 2023-05-30 16:09:19 +02:00
completion_test.go bump golangci-lint to v1.49.0 2022-10-17 09:19:41 +02:00
create.go Add --restart flag to pod create 2023-05-02 10:29:58 -04:00
create_opts.go Fix default handling of pids-limit 2023-01-27 23:19:44 -06:00
create_test.go linter: enable unconvert linter 2022-05-19 13:59:15 +02:00
default.go Support setting image_volume_mode in containers.conf 2022-05-26 14:16:26 -04:00
diffChanges.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
inspect.go fix podman pod inspect to support multiple pods 2022-09-08 10:28:42 +02:00
netflags.go libpod: Add pasta networking mode 2022-11-08 00:16:35 +01:00
sign.go Add (podman {image,manifest} push --sign-by-sigstore=param-file.yaml) 2023-01-27 16:47:32 +01:00