aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-06-14 17:19:05 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-06-14 17:19:49 +0200
commit3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d (patch)
treefac232f531b4339ee523b714c0d8856378d26623
parentc5828fd5393279def342465ee92c5991a62f91cd (diff)
downloadseitan-3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d.tar
seitan-3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d.tar.gz
seitan-3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d.tar.bz2
seitan-3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d.tar.lz
seitan-3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d.tar.xz
seitan-3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d.tar.zst
seitan-3647c0c25bfa8459d3c3ac39ec053dd6de0dca3d.zip
seitan: Fix typo in prepare_arg_clone()
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--operations.c2
1 files changed, 1 insertions, 1 deletions
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;