]> git.cameronkatri.com Git - mandoc.git/commit
Do not fork and exec cmp(1); instead, simply fstat(2), mmap(2), and
authorIngo Schwarze <schwarze@openbsd.org>
Sat, 26 Aug 2017 15:55:46 +0000 (15:55 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Sat, 26 Aug 2017 15:55:46 +0000 (15:55 +0000)
commitafc45099796ef993531edb38243a35e0e65a03f2
treeb971b16caeb4147eaf28d72235d445fd9308d606
parentf7d7aa27e1c4864eb85b6812980df0498fc4c992
Do not fork and exec cmp(1); instead, simply fstat(2), mmap(2), and
compare the files directly, allowing a much stricter pledge(2), at
very little cost: merely 15 additional lines of very simple code.
Suggested by George Brown <321 dot george at gmail dot com> on misc@.
mandocdb.c