Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Dec 2005 15:38:04 +1100
From:      Jan Mikkelsen <janm@transactionware.com>
To:        Julesg <julesg@shilohyrc.com>
Cc:        freebsd-database@freebsd.org
Subject:   Re: a problem with the btree facility in FreeBSD
Message-ID:  <439515AC.6010801@transactionware.com>
In-Reply-To: <fa33f4d3f535840db5ca7620426d327a@shilohyrc.com>
References:  <fa33f4d3f535840db5ca7620426d327a@shilohyrc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Julesg wrote:
> During processing the permissions line on the file is all ZERO's (a horizontal line of dashes) and is unchanged after the file is closed (we do a DB-close, not our own close, nor do we simply exit the application.)
> 
> But the permissions don't change, and we can't (in a subsequent application,) running another job, open the DB and either read or write the existing DB file.

It sounds like you are doing something like "open(fspec, flags, 0)".

You probably want to do something like "open(fspec, flags, 0600)".

See open(2) and chmod(2).

Regards,

Jan Mikkelsen
Transactionware




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439515AC.6010801>