aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llvfs/lldir_solaris.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/llvfs/lldir_solaris.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/llvfs/lldir_solaris.cpp')
-rw-r--r--linden/indra/llvfs/lldir_solaris.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/llvfs/lldir_solaris.cpp b/linden/indra/llvfs/lldir_solaris.cpp
index 2143bb2..62c1eb7 100644
--- a/linden/indra/llvfs/lldir_solaris.cpp
+++ b/linden/indra/llvfs/lldir_solaris.cpp
@@ -152,8 +152,8 @@ void LLDir_Solaris::initAppDirs(const std::string &app_name)
152{ 152{
153 mAppName = app_name; 153 mAppName = app_name;
154 154
155 LLString upper_app_name(app_name); 155 std::string upper_app_name(app_name);
156 LLString::toUpper(upper_app_name); 156 LLStringUtil::toUpper(upper_app_name);
157 157
158 char* app_home_env = getenv((upper_app_name + "_USER_DIR").c_str()); /* Flawfinder: ignore */ 158 char* app_home_env = getenv((upper_app_name + "_USER_DIR").c_str()); /* Flawfinder: ignore */
159 if (app_home_env) 159 if (app_home_env)
@@ -167,14 +167,14 @@ void LLDir_Solaris::initAppDirs(const std::string &app_name)
167 mOSUserAppDir = mOSUserDir; 167 mOSUserAppDir = mOSUserDir;
168 mOSUserAppDir += "/"; 168 mOSUserAppDir += "/";
169 mOSUserAppDir += "."; 169 mOSUserAppDir += ".";
170 LLString lower_app_name(app_name); 170 std::string lower_app_name(app_name);
171 LLString::toLower(lower_app_name); 171 LLStringUtil::toLower(lower_app_name);
172 mOSUserAppDir += lower_app_name; 172 mOSUserAppDir += lower_app_name;
173 } 173 }
174 174
175 // create any directories we expect to write to. 175 // create any directories we expect to write to.
176 176
177 int res = LLFile::mkdir(mOSUserAppDir.c_str()); 177 int res = LLFile::mkdir(mOSUserAppDir);
178 if (res == -1) 178 if (res == -1)
179 { 179 {
180 if (errno != EEXIST) 180 if (errno != EEXIST)
@@ -185,7 +185,7 @@ void LLDir_Solaris::initAppDirs(const std::string &app_name)
185 } 185 }
186 } 186 }
187 187
188 res = LLFile::mkdir(getExpandedFilename(LL_PATH_LOGS,"").c_str()); 188 res = LLFile::mkdir(getExpandedFilename(LL_PATH_LOGS,""));
189 if (res == -1) 189 if (res == -1)
190 { 190 {
191 if (errno != EEXIST) 191 if (errno != EEXIST)
@@ -194,7 +194,7 @@ void LLDir_Solaris::initAppDirs(const std::string &app_name)
194 } 194 }
195 } 195 }
196 196
197 res = LLFile::mkdir(getExpandedFilename(LL_PATH_USER_SETTINGS,"").c_str()); 197 res = LLFile::mkdir(getExpandedFilename(LL_PATH_USER_SETTINGS,""));
198 if (res == -1) 198 if (res == -1)
199 { 199 {
200 if (errno != EEXIST) 200 if (errno != EEXIST)
@@ -203,7 +203,7 @@ void LLDir_Solaris::initAppDirs(const std::string &app_name)
203 } 203 }
204 } 204 }
205 205
206 res = LLFile::mkdir(getExpandedFilename(LL_PATH_CACHE,"").c_str()); 206 res = LLFile::mkdir(getExpandedFilename(LL_PATH_CACHE,""));
207 if (res == -1) 207 if (res == -1)
208 { 208 {
209 if (errno != EEXIST) 209 if (errno != EEXIST)
@@ -212,7 +212,7 @@ void LLDir_Solaris::initAppDirs(const std::string &app_name)
212 } 212 }
213 } 213 }
214 214
215 res = LLFile::mkdir(getExpandedFilename(LL_PATH_MOZILLA_PROFILE,"").c_str()); 215 res = LLFile::mkdir(getExpandedFilename(LL_PATH_MOZILLA_PROFILE,""));
216 if (res == -1) 216 if (res == -1)
217 { 217 {
218 if (errno != EEXIST) 218 if (errno != EEXIST)