Disable user add-ons only if specifically set in the safemode settings,

thanks François!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24341 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-03-09 22:21:21 +00:00
parent b7ebc38189
commit 6c1198ff2d

View File

@ -235,8 +235,8 @@ AddOnManager::RegisterAddOns()
char buffer[16];
size_t size = sizeof(buffer);
bool disableUserAddOns = _kern_get_safemode_option(B_SAFEMODE_SAFE_MODE,
buffer, &size) == B_OK
bool disableUserAddOns = _kern_get_safemode_option(
B_SAFEMODE_DISABLE_USER_ADD_ONS, buffer, &size) == B_OK
&& (!strcasecmp(buffer, "true")
|| !strcasecmp(buffer, "yes")
|| !strcasecmp(buffer, "on")