fix some file mode bug 755->644
merged branch bronze1man/pr-file-mode (PR #8674)

This PR was merged into the 2.2 branch.

Discussion
----------

fix some file mode bug 755->644

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

addd560 fix some file mode bug 755->644
Merge branch '2.2' into 2.3

* 2.2:
  fix some file mode bug 755->644