1
0
mirror of https://github.com/NevermindZZT/letter-shell.git synced 2025-01-21 10:02:54 +08:00

修复 一个空指针问题

This commit is contained in:
Letter 2022-05-15 20:23:37 +08:00
parent 35cadf2695
commit 265656bdf6

View File

@ -438,8 +438,9 @@ signed char shellCheckPermission(Shell *shell, ShellCommand *command)
{
return ((!command->attr.attrs.permission
|| command->attr.attrs.type == SHELL_TYPE_USER
|| (command->attr.attrs.permission
& shell->info.user->attr.attrs.permission))
|| (shell->info.user
&& (command->attr.attrs.permission
& shell->info.user->attr.attrs.permission)))
&& (shell->status.isChecked
|| command->attr.attrs.enableUnchecked))
? 0 : -1;