mirror of
https://github.com/samba-team/samba.git
synced 2025-11-22 16:23:49 +03:00
r904: - fixed account expiry testing in auth_sam
- added printf style format attribute checking to samdb varargs fns - fix nt_time_to_unix() for zero and -1 times
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
8feeecf303
commit
41f9b144f9
@@ -91,6 +91,12 @@ It's originally in "100ns units since jan 1st 1601"
|
||||
****************************************************************************/
|
||||
time_t nt_time_to_unix(NTTIME nt)
|
||||
{
|
||||
if (nt == 0) {
|
||||
return 0;
|
||||
}
|
||||
if (nt == -1LL) {
|
||||
return (time_t)-1;
|
||||
}
|
||||
nt += 1000*1000*10/2;
|
||||
nt /= 1000*1000*10;
|
||||
nt -= TIME_FIXUP_CONSTANT;
|
||||
|
||||
Reference in New Issue
Block a user