Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syscall 136 personality #642

Merged
merged 3 commits into from
Feb 17, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct error code for sys_personality
  • Loading branch information
krystophny committed Feb 17, 2020
commit e223d8ef50061cae4b9fd3ed0ce8ba0da698703d
2 changes: 1 addition & 1 deletion kernel/getset.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,5 @@ dword_t sys_personality(dword_t pers) {
return 0x00000000;
if (pers == 0x00000000) // set personality to Linux
return 0x00000000;
return -1; // otherwise return error
return _EINVAL; // otherwise return error
}