kill(1): Don't kill pid -1 on overflow from strtol(3).
authorKrzysztof Piecuch <piecuch@protonmail.com>
Fri, 11 Sep 2020 17:53:10 +0000 (17:53 +0000)
committerSascha Wildner <saw@online.de>
Sat, 26 Sep 2020 09:41:47 +0000 (11:41 +0200)
commitf21fe77e8cca3515787d3d3500ece3dd6a91ff94
tree87880032d8331c00721bbc14fe9aed7192cd28ba
parentc5063069215f97c3ca9eaf076322e5d6689ca33d
kill(1): Don't kill pid -1 on overflow from strtol(3).

Port freebsd/freebsd@908622a5632a1a9aa5dda2a1fc7ce9f0102f6327
Store the result in a proper long and then compare to the proper pid_t
for overflow so that no MD assumptions are made.

Taken-from: FreeBSD
bin/kill/Makefile
bin/kill/kill.1
bin/kill/kill.c