shared repository - add a few missing calls to adjust_shared_perm().