Add a basename_r() and use it in names_to_pid() to avoid basename() overwriting
authorRob Landley <rob@landley.net>
Fri, 10 Jul 2015 19:52:14 +0000 (14:52 -0500)
committerRob Landley <rob@landley.net>
Fri, 10 Jul 2015 19:52:14 +0000 (14:52 -0500)
commit6292beb86fa9a3999f0f0b76185e0a893af85cd0
tree047be7bae09f50534ea5d73c586c060e1ad50fac
parent68771c00530622b5bc52438ae8010c7a6f429791
Add a basename_r() and use it in names_to_pid() to avoid basename() overwriting
itself on some inputs. (Which makes killall really impolite. Bug report
from Nicholas Noury via Elliott Hughes.)
lib/lib.c
lib/lib.h