From 7eb26d649a837b29d669185e3e0f7c833db6eb29 Mon Sep 17 00:00:00 2001 From: Samuel Venable Date: Wed, 22 May 2024 22:16:07 +0000 Subject: [PATCH] Update cwd.ipp --- include/boost/process/v2/ext/impl/cwd.ipp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/process/v2/ext/impl/cwd.ipp b/include/boost/process/v2/ext/impl/cwd.ipp index d96942b51..e2e9120a6 100644 --- a/include/boost/process/v2/ext/impl/cwd.ipp +++ b/include/boost/process/v2/ext/impl/cwd.ipp @@ -159,7 +159,8 @@ filesystem::path cwd(boost::process::v2::pid_type pid, boost::system::error_code { std::vector vecbuff; vecbuff.resize(len); - if (sysctl(mib, sz, &vecbuff[0], &len, nullptr, 0) == 0) { + if (sysctl(mib, sz, &vecbuff[0], &len, nullptr, 0) == 0) + { path = filesystem::canonical(&vecbuff[0], ec); } else