Commit 4b9d7f36 authored by Robert Sesek's avatar Robert Sesek Committed by Commit Bot

Fix crdmg so that it actually works.

After changing to the __builtin_available() syntax in
51938fff, crdmg's sandbox blocked
reading the SystemVersion.plist, which caused crdmg to not properly
detect the OS version.

Bug: 752128
Change-Id: I2d1035c4de8c2f0559ccabc06eaf046da2f6522b
Reviewed-on: https://chromium-review.googlesource.com/600129Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491759}
parent 00d59f5d
......@@ -89,10 +89,10 @@ int SafeDMG::Main(int argc, const char* argv[]) {
if (argc == 3 && !PrepareUnpack(argv[2]))
return EXIT_FAILURE;
if (!EnableSandbox())
return EXIT_FAILURE;
if (__builtin_available(macOS 10.10, *)) {
if (!EnableSandbox())
return EXIT_FAILURE;
if (!ParseDMG())
return EXIT_FAILURE;
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment