mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: cert_file should be normalized as well
This commit is contained in:
parent
14fb19353a
commit
0d07936d7b
1 changed files with 5 additions and 0 deletions
|
|
@ -53,6 +53,11 @@ impl ServiceSftp {
|
|||
.ok_or_else(|| io::Error::other("key_file must be either empty or an absolute path"))?;
|
||||
}
|
||||
|
||||
if !self.cert_file.as_os_str().is_empty() {
|
||||
self.cert_file = normalize_path(mem::take(&mut self.cert_file))
|
||||
.ok_or_else(|| io::Error::other("cert_file must be either empty or an absolute path"))?;
|
||||
}
|
||||
|
||||
self.identity_agent = if self.identity_agent.as_os_str().is_empty() {
|
||||
std::env::var_os("SSH_AUTH_SOCK")
|
||||
.map(PathBuf::from)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue