Enable building on unsupported systems

This commit is contained in:
Daniel
2020-07-22 11:13:57 +02:00
parent 3b6cd55d51
commit 084c194da3
4 changed files with 74 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ func (p *Process) IsUser() bool {
// IsAdmin returns whether the process is run by an admin user.
func (p *Process) IsAdmin() bool {
return p.UserID >= 0
return p.UserID >= 0 && p.UserID < 1000
}
// IsSystem returns whether the process is run by the operating system.