| Summary: | pwd_mkdb SIG11 on bad file + bizarness | ||
|---|---|---|---|
| Product: | Base System | Reporter: | yonatan <yonatan> |
| Component: | bin | Assignee: | Dag-Erling Smørgrav <des> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
yonatan
2001-11-29 18:40:01 UTC
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
Responsible Changed From-To: freebsd-bugs->des I'll take this. State Changed From-To: open->feedback Fixed in -CURRENT, awaiting MFC. State Changed From-To: feedback->closed Fixed in -CURRENT, and does not seem to be an issue in -STABLE. Thanks! |