From f2df231fed18df3cb46a62352a089bd9ba296601 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 12 May 2021 13:49:37 +0200 Subject: [PATCH] core: use GID_INVALID instead of -1 where appropriate --- src/core/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/execute.c b/src/core/execute.c index 6a1e6c84297..2ee85c5e63e 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -744,7 +744,7 @@ static int chown_terminal(int fd, uid_t uid) { } /* This might fail. What matters are the results. */ - r = fchmod_and_chown(fd, TTY_MODE, uid, -1); + r = fchmod_and_chown(fd, TTY_MODE, uid, GID_INVALID); if (r < 0) return r; -- 2.47.3