Bug 2021339

Summary: pwck segfaults when ran as a non-root user
Product: [Fedora] Fedora Reporter: Matthew Burket <mburket>
Component: shadow-utilsAssignee: Iker Pedrosa <ipedrosa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 35CC: ipedrosa, mburket, pvrabec, tm
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: sync-to-jira review
Fixed In Version: shadow-utils-4.9-8.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-26 01:22:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Burket 2021-11-08 22:08:18 UTC
Description of problem:
Running pwck as a non-root user segfaults.

Version-Release number of selected component (if applicable):
rpm -q shadow-utils
shadow-utils-4.9-3.fc35.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Install the package shadow-utils
2. Run pwck (no flags) as a non-root user
3. Segfault

Actual results:
Segfault

Expected results:
Error message, output, no Segfault.


Additional info:

Comment 1 Iker Pedrosa 2021-11-15 11:47:56 UTC
Upstream PR:
    https://github.com/shadow-maint/shadow/pull/445

Comment 2 Iker Pedrosa 2021-11-18 09:53:24 UTC
master
    pwck: fix segfault when calling fprintf() - d8e54618feea201987c1f3cb402ed50d1d8b604f

Comment 3 Fedora Update System 2021-11-23 08:48:20 UTC
FEDORA-2021-380251ce99 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-380251ce99

Comment 4 Fedora Update System 2021-11-24 01:57:10 UTC
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.

Comment 5 Fedora Update System 2021-11-26 01:22:26 UTC
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.