Skip to content

Commit 45cbc6d

Browse files
committed
OS (macOS): force reporting 26 on macOS Tahoe
Fix #1809
1 parent e68f766 commit 45cbc6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/detection/os/os_apple.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ static void parseSystemVersion(FFOSResult* os)
2525
ffStrbufInitS(&os->version, value.UTF8String);
2626
if((value = dict[@"ProductBuildVersion"]))
2727
ffStrbufInitS(&os->buildID, value.UTF8String);
28+
if (ffStrbufStartsWithS(&os->version, "16."))
29+
{
30+
// macOS 26 Tahoe. #1809
31+
os->version.chars[0] = '2';
32+
}
2833
}
2934

3035
static bool detectOSCodeName(FFOSResult* os)

0 commit comments

Comments
 (0)