2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Tivoli Directory Server requires that seconds be present in a

timestamp, even though RFC 4517 states that they are optional.
This commit is contained in:
Todd C. Miller
2011-05-25 15:04:34 -04:00
parent b463d026b7
commit 086cbfe376
2 changed files with 7 additions and 5 deletions

View File

@@ -934,7 +934,7 @@ sudo_ldap_timefilter(char *buffer, size_t buffersize)
}
/* Format the timestamp according to the RFC. */
if (strftime(timebuffer, sizeof(timebuffer), "%Y%m%d%H%MZ", tp) == 0) {
if (strftime(timebuffer, sizeof(timebuffer), "%Y%m%d%H%M%SZ", tp) == 0) {
warning(_("unable to format timestamp"));
goto done;
}