* C library bug for long lines in /etc/group
@ 1997-12-25 5:00 raphael
1998-01-03 5:00 ` Greg Lindahl
0 siblings, 1 reply; 2+ messages in thread
From: raphael @ 1997-12-25 5:00 UTC (permalink / raw)
To: raphael
In Linux 2.0.32 for a Dec Alpha (RedHat), lines longer than 500
characters in /etc/group cause programs that refer to such lines
via the C library to enter an infinite loop. For example, ls -l
of a file with an invalid group number looks at every line in
/etc/group, including the long ones.
This problem does not appear to exist in Linux 2.0.30 (Slackware)
for Intel.
We generate /etc/group automatically, and we have several groups to
which almost all our users belong. As a workaround, we are limiting
the number of users listed in any group.
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C library bug for long lines in /etc/group
1997-12-25 5:00 C library bug for long lines in /etc/group raphael
@ 1998-01-03 5:00 ` Greg Lindahl
0 siblings, 0 replies; 2+ messages in thread
From: Greg Lindahl @ 1998-01-03 5:00 UTC (permalink / raw)
raphael@cs.uky.edu writes:
> In Linux 2.0.32 for a Dec Alpha (RedHat), lines longer than 500
> characters in /etc/group cause programs that refer to such lines
> via the C library to enter an infinite loop. For example, ls -l
> of a file with an invalid group number looks at every line in
> /etc/group, including the long ones.
This is a common Unix bug -- NIS v1 had a limit at 1024 characters, I
think. The fix there is to split the group into several lines with the
same GID.
-- g
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-01-03 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-25 5:00 C library bug for long lines in /etc/group raphael
1998-01-03 5:00 ` Greg Lindahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox