Log Message: By default, chmod follows symlinks, which is not intended here. Patch by Lloyd Parkes in PR 37391.