]> git.ipfire.org Git - thirdparty/shadow.git/commit
groupdel: fix SIGSEGV when passwd does not exist 435/head
authorFrançois Rigault <frigo@amadeus.com>
Mon, 1 Nov 2021 12:54:25 +0000 (13:54 +0100)
committerFrançois Rigault <frigo@amadeus.com>
Mon, 1 Nov 2021 12:54:25 +0000 (13:54 +0100)
commita757b458ffb4fb9a40bcbb4f7869449431c67f83
treebfadbe536438deba3752d0d73e567aca5aacc9d4
parent387da46d73524c9fea48f5a949eb5220d40440e6
groupdel: fix SIGSEGV when passwd does not exist

When using groupdel with a prefix, groupdel will attempt to read a
passwd file to look for any user in the group. When the file does not
exist it cores with segmentation fault.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1986111
libmisc/prefix_flag.c