diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-07 03:01:55 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-07 03:01:55 +0000 |
commit | e91ceacb6c71ae05a82583c78af896051b7a88fe (patch) | |
tree | 3af5317e20ee4cc92e78408e50516be25548d509 /source3/tdb/tdb.h | |
parent | f0a38833799f3fb329ce94bfdfc9e3522a4b5969 (diff) | |
download | samba-e91ceacb6c71ae05a82583c78af896051b7a88fe.tar.gz samba-e91ceacb6c71ae05a82583c78af896051b7a88fe.tar.xz samba-e91ceacb6c71ae05a82583c78af896051b7a88fe.zip |
- patch from Rusty to neaten up the code a bit
- fixed a race condition in tdb_open()
(This used to be commit 21d4882f64a65ee1786231eb55b7768bb44921fd)
Diffstat (limited to 'source3/tdb/tdb.h')
-rw-r--r-- | source3/tdb/tdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h index 9cb8f71a902..5ceb79ee4d2 100644 --- a/source3/tdb/tdb.h +++ b/source3/tdb/tdb.h @@ -22,8 +22,11 @@ typedef unsigned tdb_len; typedef unsigned tdb_off; +#define TDB_MAGIC_FOOD "TDB file\n" + /* this is stored at the front of every database */ struct tdb_header { + char magic_food[32]; /* for /etc/magic */ unsigned version; /* version of the code */ unsigned hash_size; /* number of hash entries */ }; |