From 36a6611da2820da3635a8158dd26f41732b5b4fd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 18 Sep 2001 06:20:28 +0000 Subject: Use structure copy to fix unaligned accesses on 64bit architectures on Linux. Jeremy. (This used to be commit b4b891279b6292237113456f1bb0d4393f1f9af1) --- source3/include/includes.h | 2 +- source3/locking/locking.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/include/includes.h b/source3/include/includes.h index 8cb587209c..9b56c8a477 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -753,7 +753,7 @@ typedef struct smb_wpasswd { #define MAP_FILE 0 #endif -#if (!defined(WITH_NISPLUS) && !defined(WITH_LDAP) && !defined(WITH_TDBPWD)) +#if (!defined(WITH_NISPLUS) && !defined(WITH_LDAP) && !defined(WITH_TDBSAM)) #define USE_SMBPASS_DB 1 #endif diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 750ebe6716..a942965684 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -456,7 +456,7 @@ static void fill_share_mode(char *p, files_struct *fsp, uint16 port, uint16 op_t e->share_mode = fsp->share_mode; e->op_port = port; e->op_type = op_type; - memcpy((char *)&e->time, (char *)&fsp->open_time, sizeof(struct timeval)); + e->time = fsp->open_time; } /******************************************************************* -- cgit