mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-12-31 11:12:02 +00:00
swtpm: Fix return code of change_process_owner
The return code of change_process_owner must be negative. This patch fixes one occurrence. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
45ed7764fb
commit
59b07baffc
@ -104,7 +104,7 @@ change_process_owner(const char *user)
|
||||
logprintf(STDERR_FILENO,
|
||||
"Error: User '%s' does not exist.\n",
|
||||
user);
|
||||
return 14;
|
||||
return -14;
|
||||
}
|
||||
|
||||
if (initgroups(passwd->pw_name, passwd->pw_gid) < 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user