File tree Expand file tree Collapse file tree
cpp/src/arrow/flight/sql/odbc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,11 +230,9 @@ if(ARROW_FLIGHT_SQL_ODBC_INSTALLER)
230230 # Upgrade GUID is required to be unchanged for ODBC installer to upgrade
231231 set (CPACK_WIX_UPGRADE_GUID "DBF27A18-F8BF-423F-9E3A-957414D52C4B" )
232232 set (CPACK_WIX_PRODUCT_GUID "279D087B-93B5-4DC3-BA69-BCF485022A26" )
233- else ( )
233+ elseif ( APPLE )
234234 # macOS and Linux
235- if (APPLE )
236- set (CPACK_GENERATOR "productbuild" )
237- endif ()
235+ set (CPACK_GENERATOR "productbuild" )
238236 endif ()
239237 # GH-47877 TODO: create Linux Installer using cpack
240238
Original file line number Diff line number Diff line change 1717# specific language governing permissions and limitations
1818# under the License.
1919
20- # Used by arrow/ cpp/src/arrow/flight/sql/odbc/install/mac/postinstall
20+ # Used by cpp/src/arrow/flight/sql/odbc/install/mac/postinstall
2121
2222set -euo pipefail
2323
Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ if grep -q '^\[ODBC Data Sources\]' "$SYSTEM_ODBC_FILE"; then
7070 ' " $SYSTEM_ODBC_FILE " > " $tmp_file "
7171
7272 mv " $tmp_file " " $SYSTEM_ODBC_FILE "
73+
74+ # Restore expected permissions/ownership for system ODBC config
75+ chmod 644 " $SYSTEM_ODBC_FILE "
7376 fi
7477else
7578 # Section doesn't exist, append section and DSN entry at end
You can’t perform that action at this time.
0 commit comments