mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-30 02:31:30 +00:00
commit
e6a0a135f1
@ -60,8 +60,6 @@ static int VarCurrentUseIdReplace(const SandboxContext *context,
|
||||
int len = 0;
|
||||
if (extraData == NULL || !CHECK_FLAGS_BY_INDEX(extraData->operation, SANDBOX_TAG_PERMISSION)) {
|
||||
len = sprintf_s((char *)buffer, bufferLen, "%u", info->uid / UID_BASE);
|
||||
} else if (context->appFullMountEnable && strlen(info->userName) > 0) {
|
||||
len = sprintf_s((char *)buffer, bufferLen, "%s", "currentUser");
|
||||
} else {
|
||||
len = sprintf_s((char *)buffer, bufferLen, "%s", "currentUser");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user