]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
libarchive/archive_util.c:__archive_issetugid: Fix uninitialized variable rgid 2796/head
authorvcoxvco <vcoxvco@googlemail.com>
Sun, 23 Nov 2025 18:27:42 +0000 (19:27 +0100)
committervcoxvco <vcoxvco@googlemail.com>
Sun, 23 Nov 2025 18:27:42 +0000 (19:27 +0100)
libarchive/archive_util.c

index b0cebce195a9df940c11a3d37b7b6524fc1b7746..38371ea2a416a82c074555f294149142a9530a28 100644 (file)
@@ -427,7 +427,7 @@ __archive_issetugid(void)
                return (-1);
        if (ruid != euid || ruid != suid)
                return (1);
-       if (getresgid(&ruid, &egid, &sgid) != 0)
+       if (getresgid(&rgid, &egid, &sgid) != 0)
                return (-1);
        if (rgid != egid || rgid != sgid)
                return (1);