mirror of
https://github.com/jlengrand/5GUIs-1.git
synced 2026-03-10 08:01:25 +00:00
Do not launch objdump in shell
... no point, just produces escaping issues.
This commit is contained in:
@@ -116,9 +116,14 @@ private func run(objdump: String, against url: URL,
|
||||
private func run(objdump: String, against url: URL) throws -> [ String ] {
|
||||
// bash escaping
|
||||
let result = Process.launch(at: objdump,
|
||||
with: [ "-macho", "--dylibs-used", "'\(url.path)'" ])
|
||||
with: [ "-macho", "--dylibs-used", url.path ],
|
||||
using: .none /* no shell */)
|
||||
guard result.status == 0 else {
|
||||
print("ERROR: objdump result:", result)
|
||||
// status is 4 on signing errors (illegal instruction)
|
||||
// status is 127 for bash errors
|
||||
print("ERROR: objdump result:", result,
|
||||
"\n path:", objdump,
|
||||
"\n error:\n", result.stderr)
|
||||
throw OToolError.invocationFailed(status: result.status)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user