Red Hat Bugzilla – Bug 106684
getgrnam fails with invalid group and long group line
Last modified: 2007-11-30 17:06:58 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2)
Description of problem:
getgrnam goes into an infinite loop (reading /etc/group over and over) when
(symptom was tar, but a simple test program fails as well).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. look up a non-existant group
2. use the attached group file
Actual Results: calls to getgrnam never return, read /etc/group indefinitely
Expected Results: should return NULL
Created attachment 95075 [details]
simple test code
Created attachment 95076 [details]
group file that causes the problem
This appears to be fixed in the 2.3.2-90 release of glibc.
I was wondering why I cannot reproduce it...