<HTML>
<HEAD>
<TITLE>Re: munmap &amp; tripwire</TITLE>
</HEAD>
<BODY>
<H1>Re: munmap &amp; tripwire</H1>
<HR>
<PRE>
<strong>From          </strong> <A HREF="mailto:hodges@space.srrb.noaa.gov">hodges@space.srrb.noaa.gov</A> (Gary Hodges)
<strong>Organization  </strong> National Oceanic and Atmospheric Administration, Boulder
<strong>Date          </strong> 27 Feb 1998 21:54:02 GMT
<strong>Newsgroups    </strong> <A HREF="news:comp.os.linux.misc">comp.os.linux.misc</A>
<strong>Message-ID    </strong> &lt;6d7clq$pbl$1@mwrns.noaa.gov&gt;
<strong>References    </strong> <A HREF="/cgi-bin/news?id@6d6opf%24h0m%241@mwrns.noaa.gov">1</A>
</PRE>
<HR>
<PRE>
Gary Hodges (hodges@space.srrb.noaa.gov) wrote:
: Can't seem to generate an answer from a couple linux mailing lists I'm
: subscribed to, so...



I posted earlier about a Segmentation Fault I was getting while trying to run
tripwire in the initialize mode.  Well, the problem is now solved.  In file
config.parse.c around line 356 I had to change

--------------------------------
    /* clean up */
    if (!specified_configmode)
        (void) fclose(fpin);

    rewind(fpout);
    return;
--------------------------------
to 
--------------------------------
    /* clean up */
    if (!specified_configmode) {
        (void) fclose(fpin);
    } else {
        rewind(fpout);
    }

    return;
--------------------------------

Previous to this code snippet, fpout is set to fpin.  Apparently, in my case
this was causing a problem in the code that had to be changed.  For some
reason that I don't know, it was a bug specific to me.  I never would have
found it, but our lab's on call computer guy (who is a very good BTW) found
it after a couple hours of fiddling around.

Anyway, I don't know how many folks are interested in this fix, but I thought
I'd let everyone know since I had posted requests for help.

Cheers,
Gary
</PRE>
</BODY>
</HTML>
