Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2001 11:40:03 -0800 (PST)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/32378: pwd_mkdb SIG11 on bad file + bizarness
Message-ID:  <200111291940.fATJe3564744@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/32378; it has been noted by GNATS.

From: Maxim Konovalov <maxim@macomnet.ru>
To: Yonatan Bokovza <yonatan@xpert.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/32378: pwd_mkdb SIG11 on bad file + bizarness
Date: Thu, 29 Nov 2001 22:38:50 +0300 (MSK)

 Hello,
 
 Try this patch:
 
 Index: gen/pw_scan.c
 ===================================================================
 RCS file: /home/ncvs/src/lib/libc/gen/pw_scan.c,v
 retrieving revision 1.17
 diff -u -r1.17 pw_scan.c
 --- gen/pw_scan.c	5 Mar 2001 11:58:12 -0000	1.17
 +++ gen/pw_scan.c	29 Nov 2001 19:35:42 -0000
 @@ -133,7 +133,8 @@
  	pw->pw_gid = id;
 
  	if (flags & _PWSCAN_MASTER ) {
 -		pw->pw_class = strsep(&bp, ":");		/* class */
 +		if (!(pw->pw_class = strsep(&bp, ":")))		/* class */
 +			goto fmt;
  		if(pw->pw_class[0]) pw->pw_fields |= _PWF_CLASS;
 
  		if (!(p = strsep(&bp, ":")))			/* change */
 
 
 You have to rebuild and reinstall libc after applying.
 
 HTH,
 	maxim
 
 -- 
 Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
 phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111291940.fATJe3564744>