[K42-discussion] Problem with thinwire3

Michal Ostrowski mostrows at watson.ibm.com
Mon Oct 3 19:41:57 EST 2005


Suppose one performs an installation of hwtools (i.e. kvictim) with the
result being that kvictim is installed as /foo/bin/kvictim.  kvictim
will attempt to read the following config files:

/foo/bin/../lib/victims.conf
/foo/bin/../../lib/victims.conf

The first is on the assumption that we've installed kvictim with a
PREFIX of /foo, and thus the config files are in /foo/lib/.

The second is based on the assumption that kvictim is installed 
inside the K42 install environment, and thus a second .. is needed.

Having found a victims.conf file, and given an include directive for a
file name which doesn't start with '/', kvictim will search in the
directory in which victims.conf was found.

I am very wary of allowing kvictim to rely on the cwd to determine which
files it can find.  With the current scheme things are pretty much set
in stone once you install the script and its behavior does not change
depending on the directory you are in (which I would consider a serious
problem).

-- 
Michal Ostrowski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/k42-discussion/attachments/20051003/41c5794e/attachment.pgp 


More information about the K42-discussion mailing list