Do not take current dir pth for filemanager for recursive codesign executable path check

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-11-21 23:08:38 +08:00
parent 3378126833
commit 119883965a
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -70,7 +70,7 @@ func recursivelyCodesign(
}
for case let enumeratedItem as String in pathEnumerator {
let isExecutableFile = try isExecutable(fm.currentDirectoryPath + "/" + path + "/" + enumeratedItem)
let isExecutableFile = try isExecutable(path + "/" + enumeratedItem)
guard isLibrary(enumeratedItem) || isAppExtension(enumeratedItem) || isExecutableFile else {
continue
}