Modified functions: login_getcaptime(), login_getcapnum(), login_getcapsize().
They all call cgetstr(), which returns -2 on such conditions and already sets
errno to ENOMEM, arguably the appropriate value for these functions as well.
No in-tree consumer currently checks for errno on error reported by these
functions, so this change has no other code impact.