From: Rusty Russell Date: Wed, 31 Aug 2011 04:26:40 +0000 (+0930) Subject: tdb2: fix build with --enable-tdb2 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=b10ad70f8fd5ee359b4409b373ba93ff050c82d4;p=kai%2Fsamba.git 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 --- diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index ca33b6d3444..4ac9e849c4e 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; }