Bug 31913

Summary: isdnd may be unable to run logging tasks during startup
Product: Base System Reporter: Harald Hanche-Olsen <hanche>
Component: binAssignee: hm
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Harald Hanche-Olsen 2001-11-11 17:30:00 UTC
Isdnd tries to read the rates file, and does not find it. (That's all
right -  I have no rates file, since the price structure of my telco
doesn't really fit the isdnd model.) Isdnd generates
a message to that effect, then tries to run the program associated
with my catch-all regexp. Now, useacctfile is true but acctfp is NULL,
so after forking, the child process tries to run fclose(NULL). Poof.
(See the patch, in the Fix section below, to make sense of this
description.)

Fix: The following patch fixes the problem.  I believe it is
necessary and sufficient to fix the problem, and certainly it
can do no harm.
How-To-Repeat:       Have no rates file, but specify an account file in isdnd.rc.
Comment 1 Tom Hukins freebsd_committer freebsd_triage 2001-11-19 12:06:50 UTC
Responsible Changed
From-To: freebsd-bugs->hm

Over to i4b author
Comment 2 hm freebsd_committer freebsd_triage 2001-11-19 14:20:06 UTC
State Changed
From-To: open->closed

Has just been committed to current, MFC in a week. Thanks!