From: Lennart Poettering Date: Wed, 12 May 2021 11:49:37 +0000 (+0200) Subject: core: use GID_INVALID instead of -1 where appropriate X-Git-Tag: v249-rc1~194^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2df231fed18df3cb46a62352a089bd9ba296601;p=thirdparty%2Fsystemd.git core: use GID_INVALID instead of -1 where appropriate --- 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;