> fixes 'pkg_admin lsall' and 'pkg_admin lsbest' on Solaris and probably > other platforms where getcwd() doesn't allocate a buffer when the 2nd > arg is NULL. .. this fixes PR pkg/21182 (with patch) from Julien Letessier, with additional error checking by me.