]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: use GID_INVALID instead of -1 where appropriate
authorLennart Poettering <lennart@poettering.net>
Wed, 12 May 2021 11:49:37 +0000 (13:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 May 2021 15:12:01 +0000 (17:12 +0200)
src/core/execute.c

index 6a1e6c842974b2b8fc7414d7d007c518e002bae5..2ee85c5e63e7f08d9b636ddb97b31dbb4d0b67f9 100644 (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;