get readlink() return value and treat it as a potential error case.