Missing TRANS_RDONLY check.