Skip to content

Instantly share code, notes, and snippets.


Andrew Daugherity adaugherity

  • Texas A&M University
View GitHub Profile
View ipmitool-getpass-segfault.patch
Date: Wed, 26 Apr 2017 17:24:15 -0500
Subject: [PATCH] Fix segfault on macOS due to getpass()
The prototype is not present when _XOPEN_SOURCE >= 600; unlike other
BSDs, macOS does not include it when _BSD_SOURCE is defined.
Also remove bogus _BSD_SOURCE definition.
Submitted upstream:
View patch-edid.rb
# Create display override file to force Mac OS X to use RGB mode for Display
# see
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`