mirror of
https://github.com/systemd/systemd.git
synced 2026-07-16 04:20:34 +00:00
core: use GID_INVALID instead of -1 where appropriate
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user