- /* We need to determine whether or not to mask the execute
- bit. This applies not only to the user/group/other entries, but
- also to all other named entries. If the original file wasn't
- executable, then the result probably should not be. To
- determine whether or not "it was executable", we rely on the
- user execute bits. Obviously this should be done before we
- twiddle that bit. */
- if (has_default_mask_execute(parent)) {
- if (mode_has_perm(path_mode, S_IXUSR)) {
- /* This just adds the group execute bit, and doesn't actually
- grant group execute permissions. */
- path_mode |= S_IXGRP;
- }
- }
- else {
- path_mode &= ~S_IXGRP;
- }