summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-08-31 13:56:40 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-08-31 13:56:40 +0930
commitb10ad70f8fd5ee359b4409b373ba93ff050c82d4 (patch)
tree5ebf1a4ebffc36386baaa4ab3e962eff45750328 /source3
parent480a031c5b9a2ffe1e03e3fcb197e526e6d69e72 (diff)
downloadsamba-b10ad70f8fd5ee359b4409b373ba93ff050c82d4.tar.gz
samba-b10ad70f8fd5ee359b4409b373ba93ff050c82d4.tar.bz2
samba-b10ad70f8fd5ee359b4409b373ba93ff050c82d4.zip
tdb2: fix build with --enable-tdb2
tdb2 doesn't expost tdb_jenkins_hash; go straight to the source in ccan/hash. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_shadow_copy2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index ca33b6d344..4ac9e849c4 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -99,7 +99,7 @@
#include "system/filesys.h"
#include "include/ntioctl.h"
#include "smbd/proto.h"
-#include <tdb.h>
+#include <ccan/hash/hash.h>
#include "util_tdb.h"
#define GMT_NAME_LEN 24 /* length of a @GMT- name */
@@ -438,9 +438,8 @@ static void convert_sbuf(vfs_handle_struct *handle, const char *fname,
without significant VFS changes
*/
uint32_t shash;
- TDB_DATA data = string_tdb_data(fname);
- shash = tdb_jenkins_hash(&data) & 0xFF000000;
+ shash = hash(fname, strlen(fname), 0) & 0xFF000000;
if (shash == 0) {
shash = 1;
}