podman/cmd
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
..
podman completion: fix panic in simplePathJoinUnix() 2023-05-30 16:09:19 +02:00
podman-mac-helper podman-mac-helper: install: do not error if already installed 2023-03-24 15:34:30 +01:00
podman-wslkerninst source code comments and docs: fix typos, language, Markdown layout 2023-05-22 07:52:16 +02:00
quadlet source code comments and docs: fix typos, language, Markdown layout 2023-05-22 07:52:16 +02:00
rootlessport Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
winpath Fix spelling "setup" -> "set up" and similar 2022-06-22 18:39:21 +02:00