aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdnet
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-01-04 17:25:30 +0300
committerlevlam <levlam@telegram.org>2023-01-04 17:25:30 +0300
commit3573990d524123b861730827366f898183c998f1 (patch)
treebd710a4920fa0d05408ad4dc650f2df5d127d2c4 /tdnet
parent8df67f0c3a77fd9bb07ef05c68042cd5870986a0 (diff)
Support symbolic links in walk_path.
Diffstat (limited to 'tdnet')
-rw-r--r--tdnet/td/net/SslCtx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdnet/td/net/SslCtx.cpp b/tdnet/td/net/SslCtx.cpp
index 128b888fa..a7737ac02 100644
--- a/tdnet/td/net/SslCtx.cpp
+++ b/tdnet/td/net/SslCtx.cpp
@@ -121,7 +121,7 @@ X509_STORE *load_system_certificate_store() {
string default_cert_dir = X509_get_default_cert_dir();
for (auto cert_dir : full_split(default_cert_dir, ':')) {
walk_path(cert_dir, [&](CSlice path, WalkPath::Type type) {
- if (type != WalkPath::Type::NotDir) {
+ if (type != WalkPath::Type::RegularFile) {
return type == WalkPath::Type::EnterDir && path != cert_dir ? WalkPath::Action::SkipDir
: WalkPath::Action::Continue;
}