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;