Created attachment 315712 [details] patch based on upstream code Description of problem: system-config-users segfaults on libuser if an entry in the /etc/passwd file isn't formatted correctly. Version-Release number of selected component (if applicable): libuser-0.52.5-1.el4.1 How reproducible: always Steps to Reproduce: 1) Manually add an entry to /etc/passwd with a missing colon, eg: oracle:x:700:700:/home/oracle:/bin/bash (should be 'oracle:x:700:700::/home/oracle:/bin/bash') 2) Run system-config-users from command line (you don't see the error displayed if you run it from the GUI menu: s-c-u just doesn't run) 3) Get the following error: [mhuth@localhost ~]$ system-config-users /usr/share/system-config-users/system-config-users: line 4: 6486 Segmentation fault /usr/bin/python2 /usr/share/system-config-users/system-config-users.py Actual results: segv Expected results: libuser should not segv Additional info: patch based on upstream code attached
Created attachment 315807 [details] Consistently use "" if the last field is not present Thanks for the report, this is the relevant patch (backported from the 2006-03-05 changes on HEAD).
This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?".