Keychain: prevent call to stat() when determining appex path
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
parent
21d920c8b0
commit
74cd7041dc
|
@ -44,7 +44,7 @@ class Keychain {
|
||||||
items[kSecAttrSynchronizable] = false
|
items[kSecAttrSynchronizable] = false
|
||||||
items[kSecAttrAccessible] = kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
|
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")
|
wg_log(.error, staticMessage: "Unable to determine app extension path")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue