a97399dd0a
During shadowtcb_move() the directory is temporarily changed to be owned by root:root with permissions 0700. After the change is done, the ownership and permissions were supposed to be restored. The call for chown() was there, but the chmod() call was missing. This resulted in the broken TCB functionality. The added chmod() fixes the issue.