fam
[Top] [All Lists]

Re: [fam] tmpdir bug? in fam

To: Tom Prado <tprado@xxxxxxxxxxx>, fam@xxxxxxxxxxx
Subject: Re: [fam] tmpdir bug? in fam
From: Michael Wardle <wardle@xxxxxxxxxxxxx>
Date: Tue, 11 Sep 2001 09:45:53 +1000
In-reply-to: <3B9D4838.6090000@xxxxxxxxxxx>
Organization: Adacel Technologies Limited
References: <3B9D4838.6090000@xxxxxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
On Tue, 11 Sep 2001 09:09, Tom Prado wrote:
> When I run fam as root and I have the TMPDIR environment variable set
> to /root/tmp, fam creates it's temporary file /tmp/.famXXXXX in
> /root/tmp/.famXXXXX  so any client that connects won't work.  I take
> it the client needs to be able to access the .tmp file too?

This sounds correct.

My thought is that FAM *should* respect this environment variable, but 
perhaps some sanity checking should be performed to ensure that TMPDIR 
has all the necessary permissions.

I will have a think about this issue.  There may also be the 
possibility to override the temporary directory location in the 
configuration file, but I'll check with Rusty and others whether this 
is desirable.

Thanks for reporting this.

> The following patch removes the TMPDIR environment variable
> from fam's running environment before creating the tmp file name
> and fixes the problem..

I may use your patch, depending on which way we go.


Cheers.


-- 
MICHAEL WARDLE
SGI FAM Maintainer
Adacel Technologies Limited

--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>