Description of problem: When using groupdel with a prefix path, it segfaults on Fedora 34. groupadd and groupmod both are working fine. Version-Release number of selected component (if applicable): shadow-utils-4.8.1-8.fc34.x86_64 How reproducible: Every time groupdel is executed (as root) Steps to Reproduce: 1. Create a custom /etc/group file, e.g. using [root@fedora ~]# mkdir -p $HOME/custom_root/etc/ && touch $HOME/custom_root/etc/group 2. Create a group (succeeds) [root@fedora ~]# groupadd -P $HOME/custom_root test_group 3. Delete the group (fails) [root@fedora ~]# groupdel -P $HOME/custom_root test_group Actual results: [root@fedora ~]# groupdel -P $HOME/custom_root test_group Segmentation fault (core dumped) Expected results: Return code 0 with the group deleted from $HOME/custom_root/etc/group Additional info: [root@fedora ~]# gdb --args groupdel -P $HOME/custom_root test_group (gdb) run Starting program: /usr/sbin/groupdel -P /root/custom_root test_group Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7df795b in fgetpos@@GLIBC_2.2.5 () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff7df795b in fgetpos@@GLIBC_2.2.5 () from /lib64/libc.so.6 #1 0x00007ffff7e4d442 in fgetpwent () from /lib64/libc.so.6 #2 0x000055555555882c in main () (gdb) [root@fedora ~]# rpm -qa | grep glibc glibc-all-langpacks-2.33-20.fc34.x86_64 glibc-common-2.33-20.fc34.x86_64 glibc-langpack-en-2.33-20.fc34.x86_64 glibc-2.33-20.fc34.x86_64 glibc-doc-2.33-20.fc34.noarch glibc-headers-x86-2.33-20.fc34.noarch glibc-devel-2.33-20.fc34.x86_64
master groupdel: fix SIGSEGV when passwd does not exist - a757b458ffb4fb9a40bcbb4f7869449431c67f83
FEDORA-2021-380251ce99 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-380251ce99
FEDORA-2021-380251ce99 has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-380251ce99` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-380251ce99 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-380251ce99 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-6ac83612a5 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-6ac83612a5
FEDORA-2021-6ac83612a5 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-6ac83612a5` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-6ac83612a5 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-6ac83612a5 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.