Skip to content

Commit 8f0526f

Browse files
authored
webOS: only set new HOME if was successful (#18602)
1 parent 6e9aa66 commit 8f0526f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

retroarch.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6034,8 +6034,9 @@ int rarch_main(int argc, char *argv[], void *data)
60346034
{
60356035
snprintf(new_path, sizeof(new_path), "/media/developer/temp/webosbrew/%s", appId);
60366036
if (mkdir_p(new_path, 0775) != 0 && errno != EEXIST)
6037-
RARCH_ERR("FATAL: mkdir_p failed for '%s': %s\n", new_path, strerror(errno));
6038-
setenv("HOME", new_path, 1);
6037+
RARCH_WARN("[webOS]: Unable to write to '%s': %s\n", new_path, strerror(errno));
6038+
else
6039+
setenv("HOME", new_path, 1);
60396040
}
60406041
}
60416042

0 commit comments

Comments
 (0)