Projects
Eulaceura:Factory
lib-shim-v2
_service:obs_scm:0005-Check-if-a-path-is-abstra...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0005-Check-if-a-path-is-abstract-before-connection.patch of Package lib-shim-v2
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2