perm[] error return values were incorrect