core: use GID_INVALID instead of -1 where appropriate

This commit is contained in:
Lennart Poettering
2021-05-19 17:12:01 +02:00
parent 4768529ff1
commit f2df231fed
+1 -1
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;