mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Added Tim's fix for read-only crashes.
Jeremy.
(This used to be commit cfc62fecdf
)
This commit is contained in:
parent
0961ed2b56
commit
9e9961d2db
@ -750,6 +750,8 @@ static int do_delete(TDB_CONTEXT *tdb, tdb_off rec_ptr, struct list_struct*rec)
|
||||
tdb_off last_ptr, i;
|
||||
struct list_struct lastrec;
|
||||
|
||||
if (tdb->read_only) return -1;
|
||||
|
||||
if (write_lock_record(tdb, rec_ptr) == -1) {
|
||||
/* Someone traversing here: mark it as dead */
|
||||
rec->magic = TDB_DEAD_MAGIC;
|
||||
|
Loading…
Reference in New Issue
Block a user