aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-12-21 17:57:18 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-12-22 12:46:14 +0100
commit74cd7041dcd78261832b04fff92a6e1219be345d (patch)
treee390f5872018aa2fb81a091236e3b8829b0c67a4
parentKit: Go: use Windows-style retry sleep loop on bind updates (diff)
downloadwireguard-apple-74cd7041dcd78261832b04fff92a6e1219be345d.tar.xz
wireguard-apple-74cd7041dcd78261832b04fff92a6e1219be345d.zip
Keychain: prevent call to stat() when determining appex path
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
-rw-r--r--Sources/Shared/Keychain.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sources/Shared/Keychain.swift b/Sources/Shared/Keychain.swift
index e301fed..c6e7526 100644
--- a/Sources/Shared/Keychain.swift
+++ b/Sources/Shared/Keychain.swift
@@ -44,7 +44,7 @@ class Keychain {
items[kSecAttrSynchronizable] = false
items[kSecAttrAccessible] = kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
- guard let extensionPath = Bundle.main.builtInPlugInsURL?.appendingPathComponent("WireGuardNetworkExtension.appex").path else {
+ guard let extensionPath = Bundle.main.builtInPlugInsURL?.appendingPathComponent("WireGuardNetworkExtension.appex", isDirectory: true).path else {
wg_log(.error, staticMessage: "Unable to determine app extension path")
return nil
}