Index: source/auth/auth_sam.c =================================================================== RCS file: /cvsroot/wasabisrc/dist/samba/source/auth/auth_sam.c,v retrieving revision 1.1.1.5 retrieving revision 1.3 diff -p -p -u -r1.1.1.5 -r1.3 --- source/auth/auth_sam.c 18 Apr 2005 16:38:17 -0000 1.1.1.5 +++ source/auth/auth_sam.c 1 Aug 2005 08:44:40 -0000 1.3 @@ -78,6 +78,7 @@ static BOOL logon_hours_ok(SAM_ACCOUNT * /* In logon hours first bit is Sunday from 12AM to 1AM */ const uint8 *hours; struct tm *utctime; + time_t lasttime; uint8 bitmask, bitpos; hours = pdb_get_hours(sampass); @@ -86,7 +87,8 @@ static BOOL logon_hours_ok(SAM_ACCOUNT * return True; } - utctime = localtime(&smb_last_time.tv_sec); + lasttime = smb_last_time.tv_sec; + utctime = localtime(&lasttime); /* find the corresponding byte and bit */ bitpos = (utctime->tm_wday * 24 + utctime->tm_hour) % 168; Index: source/nsswitch/winbindd_ads.c =================================================================== RCS file: /cvsroot/wasabisrc/dist/samba/source/nsswitch/winbindd_ads.c,v retrieving revision 1.1.1.4 retrieving revision 1.3 diff -p -p -u -r1.1.1.4 -r1.3 --- source/nsswitch/winbindd_ads.c 28 Jul 2005 13:19:44 -0000 1.1.1.4 +++ source/nsswitch/winbindd_ads.c 1 Aug 2005 08:44:40 -0000 1.3 @@ -640,7 +640,8 @@ static NTSTATUS lookup_groupmem(struct w NTSTATUS status = NT_STATUS_UNSUCCESSFUL; char *sidstr; char **members; - int i, num_members; + int i; + size_t num_members; fstring sid_string; BOOL more_values; const char **attrs;