a problem with the btree facility in FreeBSD

Jan Mikkelsen janm at transactionware.com
Mon Dec 5 20:36:59 PST 2005


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



More information about the freebsd-database mailing list