]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: fix setuid/setgid order
authorKarel Zak <kzak@redhat.com>
Thu, 17 Jun 2021 10:21:04 +0000 (12:21 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Jul 2021 09:23:12 +0000 (11:23 +0200)
commit37bb1b07e0671906d3de452d7759f346a331b15f
tree5daeb47458fb9d33e4a3554965554091a2b3b70b
parentda0c591015f0ce58040768764b8068e33cd9c553
more: fix setuid/setgid order

The rule is pretty simple, always use setgid() before setuid().

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/more.c