core: use GID_INVALID instead of -1 where appropriate

This commit is contained in:
Lennart Poettering
2021-05-12 13:49:37 +02:00
parent 4768529ff1
commit f2df231fed

View File

@@ -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;