From 54c4a926348fbef40e9467730e044235b8aa9cce Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 29 Jan 2010 19:51:11 +0000 Subject: [PATCH] * sec_auth.cc (lsaauth): Use CYG_LSA_MAGIC as checksum start value to decouple from Cygwin release. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/sec_auth.cc | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 23489ca1f..4571a2c08 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-01-29 Corinna Vinschen + + * sec_auth.cc (lsaauth): Use CYG_LSA_MAGIC as checksum start value to + decouple from Cygwin release. + 2010-01-29 Corinna Vinschen * libc/strfmon.c (__setup_vars): Test for an empty string rather than diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc index 6e4e72123..2a557a532 100644 --- a/winsup/cygwin/sec_auth.cc +++ b/winsup/cygwin/sec_auth.cc @@ -1053,8 +1053,7 @@ lsaauth (cygsid &usersid, user_groups &new_groups, struct passwd *pw) authinf->inf.DefaultDacl.DefaultDacl = offset; memcpy ((PBYTE) &authinf->inf + offset, dacl, dsize); - authinf->checksum = CYGWIN_VERSION_MAGIC (CYGWIN_VERSION_DLL_MAJOR, - CYGWIN_VERSION_DLL_MINOR); + authinf->checksum = CYG_LSA_MAGIC; PDWORD csp; PDWORD csp_end; csp = (PDWORD) &authinf->username;