aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/mac_updater/mac_updater.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/mac_updater/mac_updater.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/mac_updater/mac_updater.cpp')
-rw-r--r--linden/indra/mac_updater/mac_updater.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/linden/indra/mac_updater/mac_updater.cpp b/linden/indra/mac_updater/mac_updater.cpp
index 15e28ac..c2f9f4d 100644
--- a/linden/indra/mac_updater/mac_updater.cpp
+++ b/linden/indra/mac_updater/mac_updater.cpp
@@ -50,6 +50,8 @@
50#include "MoreFilesX.h" 50#include "MoreFilesX.h"
51#include "FSCopyObject.h" 51#include "FSCopyObject.h"
52 52
53#include "llerrorcontrol.h"
54
53enum 55enum
54{ 56{
55 kEventClassCustom = 'Cust', 57 kEventClassCustom = 'Cust',
@@ -345,6 +347,16 @@ int main(int argc, char **argv)
345 // We assume that all the logs we're looking for reside on the current drive 347 // We assume that all the logs we're looking for reside on the current drive
346 gDirUtilp->initAppDirs("SecondLife"); 348 gDirUtilp->initAppDirs("SecondLife");
347 349
350 LLError::initForApplication( gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, ""));
351
352 // Rename current log file to ".old"
353 std::string old_log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "updater.log.old");
354 std::string log_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "updater.log");
355 LLFile::rename(log_file.c_str(), old_log_file.c_str());
356
357 // Set the log file to updater.log
358 LLError::logToFile(log_file);
359
348 ///////////////////////////////////////// 360 /////////////////////////////////////////
349 // 361 //
350 // Process command line arguments 362 // Process command line arguments
@@ -986,7 +998,7 @@ void *updatethreadproc(void*)
986 998
987 // NOTE: we could add -private at the end of this command line to keep the image from showing up in the Finder, 999 // NOTE: we could add -private at the end of this command line to keep the image from showing up in the Finder,
988 // but if our cleanup fails, this makes it much harder for the user to unmount the image. 1000 // but if our cleanup fails, this makes it much harder for the user to unmount the image.
989 LLString mountOutput; 1001 std::string mountOutput;
990 FILE* mounter = popen("hdiutil attach SecondLife.dmg -mountpoint mnt", "r"); /* Flawfinder: ignore */ 1002 FILE* mounter = popen("hdiutil attach SecondLife.dmg -mountpoint mnt", "r"); /* Flawfinder: ignore */
991 1003
992 if(mounter == NULL) 1004 if(mounter == NULL)