FreeBSD 12.0: patch to fix crash on invocation
Brought to you by:
xystrus
From: Thomas K. <to...@gm...> - 2019-01-29 09:21:16
|
In FreeBSD 12.0, basename(3) was changed to be POSIX compliant. This implies that the function can possibly write to the passed string. Actually, basename always writes to the passed string under FreeBSD 12.0. rssh passes a const string, so it always crashes on invocation. Attached is a patch that makes a copy of the string first and passes it instead. Could you please apply it? Thank you |