The Samba-Bugzilla – Attachment 2714 Details for
Bug 4630
Endless Password Expiration in 3.0.25
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
updates for special cases of TIME_T_MAX
patch (text/plain), 630 bytes, created by
Jim McDonough
on 2007-05-21 10:59:47 UTC
(
hide
)
Description:
updates for special cases of TIME_T_MAX
Filename:
MIME Type:
Creator:
Jim McDonough
Created:
2007-05-21 10:59:47 UTC
Size:
630 bytes
patch
obsolete
>Index: lib/time.c >=================================================================== >--- lib/time.c (revision 23035) >+++ lib/time.c (working copy) >@@ -95,7 +95,13 @@ > if (t == (time_t)-1) { > *nt = (NTTIME)-1LL; > return; >- } >+ } >+ >+ if (t == TIME_T_MAX) { >+ *nt = 0x7fffffffffffffffLL; >+ return; >+ } >+ > if (t == 0) { > *nt = 0; > return; >@@ -301,7 +307,9 @@ > static fstring buf; > struct tm *tm = localtime(&t); > >- if (!tm) { >+ if (t == TIME_T_MAX) { >+ slprintf(buf,sizeof(buf)-1,"never"); >+ } else if (!tm) { > slprintf(buf,sizeof(buf)-1,"%ld seconds since the Epoch",(long)t); > } else { > #ifndef HAVE_STRFTIME
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4630
:
2704
|
2705
|
2714
|
2719