Fixes in getpriv