On Apr 30, 2010, at 18:07 , Andrew Deason wrote:
After some offline discussion, this appears to probably be the case.
sqlite opens the db file O_RDONLY, and attempts to acquire an fcntl
F_WRLCK on it, to which it gets EROFS back. Trying to acquire a
writelock on a file opened readonly doesn't make a lot of sense to me;
can someone tell me if POSIX specifies that that should fail?

It does, yes (inherited from SVID).

In any case, I think technically fcntl should be returning EBADF here,
not EROFS (I think this is our fault, but I haven't checked yet). I

EACCES is the POSIX-specified errno.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected]
system administrator [openafs,heimdal,too many hats] [email protected]
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to