Hi Brett, thanks. Protection added. Cheers, Fons. On Wed, 2004-08-25 at 21:27, Brett Viren wrote: > Hi, > > Starting a TBrowser as a user with a primary group not listed in > /etc/groups causes a SegV in TUnixSystem::GetUserInfo due to the line > > UserGroup_t *TUnixSystem::GetUserInfo(Int_t uid) > { > ... > UserGroup_t *gr = GetGroupInfo(pwd->pw_gid); > ug->fGroup = gr->fGroup; > > as ug is 0x0 because getgrgid() returns 0x0. > > I agree it's a bit odd to have systems with users that have a numeric > only main groups, but maybe we can get a check for 0x0 put in here > anyways? > > > Thanks, > -Brett. > > PS: CVS as of today (but this has been around at least a couple weeks > I think and 4.00/03 doesn't have it) on Debian x86 GCC 3.3.3, libc 2.3.2. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET