[SCM] Samba Shared Repository - branch v3-5-test updated
Karolin Seeger
kseeger at samba.org
Wed Jun 9 07:44:12 MDT 2010
The branch, v3-5-test has been updated
via 556b6f8... s3: Fix bug 7253
from 1419c15... s3-netdomjoin-gui: Fix Bug #7500. Fix 'not a string literal' warning in netdomjoin-gui.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test
- Log -----------------------------------------------------------------
commit 556b6f83d66d7268651ac7ba153fa47ff6a5e776
Author: Volker Lendecke <vl at samba.org>
Date: Tue Mar 16 21:03:34 2010 +0100
s3: Fix bug 7253
acct_ctrl is 32 bit in LOGIN_CACHE, but "w" as a format specifier for
tdb_unpack only writes 16 bits. Okay on x86, not okay on Solaris.
Thanks to Vladimir.Marek at Sun.COM!
Volker
-----------------------------------------------------------------------
Summary of changes:
source3/passdb/login_cache.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/passdb/login_cache.c b/source3/passdb/login_cache.c
index 5630372..5adb24c 100644
--- a/source3/passdb/login_cache.c
+++ b/source3/passdb/login_cache.c
@@ -69,6 +69,7 @@ LOGIN_CACHE * login_cache_read(struct samu *sampass)
TDB_DATA databuf;
LOGIN_CACHE *entry;
uint32_t entry_timestamp = 0, bad_password_time = 0;
+ uint16_t acct_ctrl;
if (!login_cache_init())
return NULL;
@@ -97,7 +98,7 @@ LOGIN_CACHE * login_cache_read(struct samu *sampass)
if (tdb_unpack (databuf.dptr, databuf.dsize, SAM_CACHE_FORMAT,
&entry_timestamp,
- &entry->acct_ctrl,
+ &acct_ctrl,
&entry->bad_password_count,
&bad_password_time) == -1) {
DEBUG(7, ("No cache entry found\n"));
@@ -106,6 +107,12 @@ LOGIN_CACHE * login_cache_read(struct samu *sampass)
return NULL;
}
+ /*
+ * Deal with 32-bit acct_ctrl. In the tdb we only store 16-bit
+ * ("w" in SAM_CACHE_FORMAT). Fixes bug 7253.
+ */
+ entry->acct_ctrl = acct_ctrl;
+
/* Deal with possible 64-bit time_t. */
entry->entry_timestamp = (time_t)entry_timestamp;
entry->bad_password_time = (time_t)bad_password_time;
--
Samba Shared Repository
More information about the samba-cvs
mailing list