From d0f3ea0fd258d30d809b2d0ec68358a164ac1c43 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 24 Oct 2023 13:03:18 -0400 Subject: [PATCH] lxd/devlxd: always use -- with `lxc exec` Signed-off-by: Simon Deziel --- lxd/devlxd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/devlxd.go b/lxd/devlxd.go index 8db2e058910f..cf8a5588bd57 100644 --- a/lxd/devlxd.go +++ b/lxd/devlxd.go @@ -405,7 +405,7 @@ func findContainerForPid(pid int32, s *state.State) (instance.Container, error) * 1. Walk up the process tree until you see something that looks like * an lxc monitor process and extract its name from there. * - * 2. If this fails, it may be that someone did an `lxc exec foo bash`, + * 2. If this fails, it may be that someone did an `lxc exec foo -- bash`, * so the process isn't actually a descendant of the container's * init. In this case we just look through all the containers until * we find an init with a matching pid namespace. This is probably