set_permissions: don't finish with exit code 1