8 Star 1 Fork 11

src-openEuler/lib-shim-v2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0003-Check-if-a-path-is-abstract-before-connection.patch 914 Bytes
一键复制 编辑 原始数据 按行查看 历史
钟佳炜1 提交于 5个月前 . lib-shim-v2:sync some patches
From fc7460e84deb77b18c895b7f4b46497a5e3ca740 Mon Sep 17 00:00:00 2001
From: czrz <chengzeruizhi@huawei.com>
Date: Wed, 7 Dec 2022 08:11:14 +0000
Subject: [PATCH 2/4] !20 Check if a path is abstract before connection * Check
if a path is abstract before connection
---
src/client/client.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/client/client.rs b/src/client/client.rs
index 3f231f2..8240b53 100644
--- a/src/client/client.rs
+++ b/src/client/client.rs
@@ -96,7 +96,7 @@ pub fn new_conn(container_id: &String, addr: &String) -> Result<()> {
};
let path = Path::new(&MAIN_SEPARATOR.to_string()).join(address);
- let fd = connect_to_socket(true, &path.to_string_lossy())?;
+ let fd = connect_to_socket(!addr.starts_with("unix://"), &path.to_string_lossy())?;
TTRPC_CLIENTS.lock().unwrap().insert(
container_id.clone(),
Store {
--
2.40.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/lib-shim-v2.git
git@gitee.com:src-openeuler/lib-shim-v2.git
src-openeuler
lib-shim-v2
lib-shim-v2
master

搜索帮助