diff --git a/src/tools/agent-ctl/src/client.rs b/src/tools/agent-ctl/src/client.rs index a4f1e45a82..bcaa878440 100644 --- a/src/tools/agent-ctl/src/client.rs +++ b/src/tools/agent-ctl/src/client.rs @@ -473,10 +473,8 @@ fn create_ttrpc_client( if path.starts_with('@') { abstract_socket = true; - // Remove the magic abstract-socket request character ('@') - // and crucially add a trailing nul terminator (required to - // interoperate with the ttrpc crate). - path = path[1..].to_string() + &"\x00".to_string(); + // Remove the magic abstract-socket request character ('@'). + path = path[1..].to_string(); } if abstract_socket {