Re: a problem with the btree facility in FreeBSD

Jan Mikkelsen <[email protected]>
Newsgroups gmane.os.freebsd.devel.database
Message-ID <[email protected]>
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

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.