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:
Stefan Berger 2019-04-02 12:13:03 -04:00 committed by Stefan Berger
parent 45ed7764fb
commit 59b07baffc

View File

@ -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) {