From 59b07baffcedc712cfdd9be20c6eb283f99bf5be Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Tue, 2 Apr 2019 12:13:03 -0400 Subject: [PATCH] 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 --- src/swtpm/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swtpm/utils.c b/src/swtpm/utils.c index bacc2d9..f4a562b 100644 --- a/src/swtpm/utils.c +++ b/src/swtpm/utils.c @@ -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) {