From b10ad70f8fd5ee359b4409b373ba93ff050c82d4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 31 Aug 2011 13:56:40 +0930 Subject: 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 --- source3/modules/vfs_shadow_copy2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/modules') 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 +#include #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; } -- cgit