fixed permissions check for executable files exported on systems where 'ls' reports alternative access characters
1082: # Copyright 2001 Gareth Rees. All rights reserved.
1083: # Copyright 2004-2007 Ned Batchelder. All rights reserved.
1084: #
1085: # Redistribution and use in source and binary forms, with or without
1086: # modification, are permitted provided that the following conditions are
1087: # met:
1088: #
1089: # 1. Redistributions of source code must retain the above copyright
1090: # notice, this list of conditions and the following disclaimer.
1091: #
1092: # 2. Redistributions in binary form must reproduce the above copyright
1093: # notice, this list of conditions and the following disclaimer in the
1094: # documentation and/or other materials provided with the
1095: # distribution.
1096: #
1097: # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1098: # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1099: # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1100: # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1101: # HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
1102: # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
1103: # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
1104: # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
1105: # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
1106: # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
1107: # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
1108: # DAMAGE.