Bug 1743555

Summary: command chfn adds some useless commas with GECOS information into /etc/password
Product: Red Hat Enterprise Linux 8 Reporter: Filip Dvorak <fdvorak>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Radka Brychtova <rskvaril>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.1   
Target Milestone: rc   
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: util-linux-2.32.1-18.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 17:03:07 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 Filip Dvorak 2019-08-20 08:26:59 UTC
Description of problem:
The command chfn adds some useless commas with first GECOS information (Name) into /etc/password

Version-Release number of selected component (if applicable):
RHEL-8.1
util-linux-user-2.32.1-13.el8.x86_64

Steps to Reproduce:
1.useradd test
2.chfn -f test_gecos test
3.check /etc/password

Actual results:
[root@ci-vm-10-0-137-111 ~]# useradd test
[root@ci-vm-10-0-137-111 ~]# grep test /etc/passwd
test:x:1000:1000::/home/test:/bin/bash
[root@ci-vm-10-0-137-111 ~]# chfn -f test_gecos test
Changing finger information for test.

Finger information changed.
[root@ci-vm-10-0-137-111 ~]# grep test /etc/passwd
test:x:1000:1000:test_gecos,,,,:/home/test:/bin/bash

Expected results:
test:x:1000:1000:test_gecos:/home/test:/bin/bash

Comment 6 errata-xmlrpc 2020-04-28 17:03:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1908