diff options
author | pfg <pfg@FreeBSD.org> | 2015-02-22 01:31:28 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-02-22 01:31:28 +0000 |
commit | 43c38b5dd3301211d8a6d217b78a916bf0eb525b (patch) | |
tree | 5d4fd923f8d1543ebc5c268747c15e8582da2a72 /contrib/diff/man/cmp.1 | |
parent | af525877d117f4e7485a9040f08efdef6c38c3c9 (diff) | |
download | FreeBSD-src-43c38b5dd3301211d8a6d217b78a916bf0eb525b.zip FreeBSD-src-43c38b5dd3301211d8a6d217b78a916bf0eb525b.tar.gz |
MFC r278803, r278905:
ulimit(3): Fix broken check.
The existing implementation had a broken comparison that could
overflow and return confusing values. Replace this with a check
that avoids the overflow before it happens.
Consistently return a maximum value also on the case of negative
arguments since negative is considered an overflow and means
infinity for our current setrlimit().
New revamped version is credited to Bruce Evans.
CID: 1199295
Diffstat (limited to 'contrib/diff/man/cmp.1')
0 files changed, 0 insertions, 0 deletions