Subject: Re: tripwire
To: None <current-users@netbsd.org>
From: Scott Aaron Bamford <sab@zeekuschrist.com>
List: tech-pkg
Date: 03/02/2000 15:58:57
Okay, I solved my own problem but i though others might be intrested in
the solution.

The problem was to do with /dev/fd/*, which i have mounted as
fdesc.. After finaly locating that as the source of the problem adding

# you need this if you have /dev/fd mounted as a fdesc filesystem
=/dev/fd	R

to the config file solved the problem.

Unless anyone has a good reason not to, could someone add that to the
default config file for the package? hopefully it will save others having
to work out the problem themselves.

sab
--------------------------------------
sab@zeekuschrist.com  |  sab@ansic.net

==
original message follows: (only posted on current-users@netbsd.org)

On Wed, 1 Mar 2000, Scott Aaron Bamford wrote:

> Date: Wed, 1 Mar 2000 23:47:06 +0000 (GMT)
> From: Scott Aaron Bamford <sab@zeekuschrist.com>
> To: current-users@netbsd.org
> Subject: tripwire
> 
> 
> Has anyone got tripwire to work on -current/i386 (1.4T)?
> 
> I can build it succesfully from pkgsrc; but it segfaults when running:
> root@blip:local/etc/tripwire# /usr/local/sbin/tripwire -initialize
> ### Phase 1:   Reading configuration file
> ### Phase 2:   Generating file list
> /usr/local/sbin/tripwire: /root/.rhosts: No such file or directory
> /usr/local/sbin/tripwire: /root/.exrc: No such file or directory
> /usr/local/sbin/tripwire: /root/.logout: No such file or directory
> /usr/local/sbin/tripwire: /root/.emacs: No such file or directory
> /usr/local/sbin/tripwire: /root/.forward: No such file or directory
> /usr/local/sbin/tripwire: /root/.netrc: No such file or directory
> zsh: segmentation fault (core dumped)  /usr/local/sbin/tripwire
> -initialize
> 
> ( note : touching the missing files and/or removing them from the config
>   does not solve the problem )
> 
> gdb gives the following:
> (gdb) where
> #0  0x480ce95a in strcmp ()
> #1  0x480cdb6f in _alphasort ()
> #2  0x480cf141 in mergesort ()
> #3  0x480ceeb7 in mergesort ()
> #4  0x480cea5c in mergesort ()
> #5  0x480ce706 in __opendir2 ()
> #6  0x480ce31a in opendir ()
> #7  0x8049cd7 in configfile_descend ()
> #8  0x8049dc3 in configfile_descend ()
> #9  0x8049dc3 in configfile_descend ()
> #10 0x8049a17 in configfile_read ()
> #11 0x804aa44 in main ()
> #12 0x8049191 in ___start ()
> 
> 
> if i go into the working directory and do a `make test' sometimes the
> tests all work fine, and sometimes i get an error message (which i am
> unable to reproduce at the moment, which is just typical (; )
> but its one of the tests returning 8 instead of 0 (or 0 instead of 8). Im
> really sorrie that i cannot give more exact details there, it seems to not
> want to fail on me now!
> 
> Any help, advise or pointers will be [very] greatfuly recived. Thanks in
> advance.
> 
> --------------------------------------
> sab@zeekuschrist.com  |  sab@ansic.net
> 
>