From 3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 14 Jun 2023 17:19:05 +0200 Subject: seitan: Fix typo in prepare_arg_clone() Signed-off-by: Stefano Brivio --- operations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'operations.c') diff --git a/operations.c b/operations.c index bb995df..97c4730 100644 --- a/operations.c +++ b/operations.c @@ -131,7 +131,7 @@ static int prepare_arg_clone(const struct seccomp_notif *req, struct gluten *g, snprintf(c->cwd, PATH_MAX, "/proc/%d/root", req->pid); } else { - snprintf(c->cwd, PATH_MAX, "/proc/%d/ns/%s", + snprintf(*dst, PATH_MAX, "/proc/%d/ns/%s", req->pid, context_type_name[type]); } break; -- cgit v1.2.3