diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2003-10-04 01:46:50 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2003-10-04 01:46:50 +0000 |
commit | e12450c0d15ddd5cb7a5d156d7a5c3270c9a40b5 (patch) | |
tree | 061bd7454bd4103e3657123313fec955a8e221d6 | |
parent | e32185cccad9cb68578ab027b032e3c98a9dbeef (diff) |
fix pr 3292
the time parsing in kadmin does not reflect reality - we must skip
the space between the day and the time, or we simply don't get the time
correctly, resulting in the time being set to 0hrs 0min 0sec
-rw-r--r-- | kerberosV/src/kadmin/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kerberosV/src/kadmin/util.c b/kerberosV/src/kadmin/util.c index 561973bc0b6..0ed852e2e4b 100644 --- a/kerberosV/src/kadmin/util.c +++ b/kerberosV/src/kadmin/util.c @@ -199,7 +199,7 @@ str2time_t (const char *str, time_t *t) tm2.tm_min = 59; tm2.tm_sec = 59; - if(strptime (p, "%H:%M:%S", &tm2) != NULL) { + if(strptime (p, "%t%H:%M:%S", &tm2) != NULL) { tm.tm_hour = tm2.tm_hour; tm.tm_min = tm2.tm_min; tm.tm_sec = tm2.tm_sec; |