aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/mac_updater/mac_updater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/mac_updater/mac_updater.cpp')
-rw-r--r--linden/indra/mac_updater/mac_updater.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/linden/indra/mac_updater/mac_updater.cpp b/linden/indra/mac_updater/mac_updater.cpp
index 72cd4c4..623db1f 100644
--- a/linden/indra/mac_updater/mac_updater.cpp
+++ b/linden/indra/mac_updater/mac_updater.cpp
@@ -733,7 +733,7 @@ void *updatethreadproc(void*)
733 FSRef targetRef; 733 FSRef targetRef;
734 FSRef targetParentRef; 734 FSRef targetParentRef;
735 FSVolumeRefNum targetVol; 735 FSVolumeRefNum targetVol;
736 FSRef trashFolderRef, tempFolderRef; 736 FSRef trashFolderRef;
737 Boolean replacingTarget = false; 737 Boolean replacingTarget = false;
738 738
739 memset(&tempDirRef, 0, sizeof(tempDirRef)); 739 memset(&tempDirRef, 0, sizeof(tempDirRef));
@@ -892,6 +892,10 @@ void *updatethreadproc(void*)
892 if(err != noErr) 892 if(err != noErr)
893 throw 0; 893 throw 0;
894 894
895#if 0 // *HACK for DEV-11935 see below for details.
896
897 FSRef tempFolderRef;
898
895 err = FSFindFolder( 899 err = FSFindFolder(
896 targetVol, 900 targetVol,
897 kTemporaryFolderType, 901 kTemporaryFolderType,
@@ -905,6 +909,17 @@ void *updatethreadproc(void*)
905 909
906 if(err != noErr) 910 if(err != noErr)
907 throw 0; 911 throw 0;
912
913#else
914
915 // *HACK for DEV-11935 the above kTemporaryFolderType query was giving
916 // back results with path names that seem to be too long to be used as
917 // mount points. I suspect this incompatibility was introduced in the
918 // Leopard 10.5.2 update, but I have not verified this.
919 char const HARDCODED_TMP[] = "/tmp";
920 strncpy(temp, HARDCODED_TMP, sizeof(HARDCODED_TMP));
921
922#endif // 0 *HACK for DEV-11935
908 923
909 strncat(temp, "/SecondLifeUpdate_XXXXXX", (sizeof(temp) - strlen(temp)) - 1); 924 strncat(temp, "/SecondLifeUpdate_XXXXXX", (sizeof(temp) - strlen(temp)) - 1);
910 if(mkdtemp(temp) == NULL) 925 if(mkdtemp(temp) == NULL)