On Thu, Aug 30, 2012 at 05:45:13PM +0400, Cyrill Gorcunov wrote: > On Thu, Aug 30, 2012 at 01:43:05PM +0000, Muralidhar, Rajeev D wrote: > > Hi Cyril > > > > I took the current git snapshot from crtools repo. Should I try version 0.1 from the tar file? > > No no, that's fine. I'm cooking a patch. Please wait a bit. Does the patch below helps for you? Andrew, why did we mangle the paths to unix names? Cyrill
>From 0b01d629e136b328fe4ce85f50d54dea9aaa0728 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> Date: Thu, 30 Aug 2012 17:43:34 +0400 Subject: [PATCH] sk-unix.c: Don't mangle name provided by fiag message Otherwise we can't fetch stat. Reported-by: "Muralidhar, Rajeev D" <rajeev.d.muralidhar@xxxxxxxxx> Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> --- sk-unix.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sk-unix.c b/sk-unix.c index 9a9323c..605e32b 100644 --- a/sk-unix.c +++ b/sk-unix.c @@ -277,7 +277,7 @@ static int unix_collect_one(const struct unix_diag_msg *m, } uv = RTA_DATA(tb[UNIX_DIAG_VFS]); - snprintf(rpath, sizeof(rpath), ".%s", name); + snprintf(rpath, sizeof(rpath), "%s", name); if (fstatat(mntns_root, rpath, &st, 0)) { pr_perror("Can't stat socket %d(%s)", m->udiag_ino, rpath); -- 1.7.7.6
_______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/containers