mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
15 lines
525 B
Diff
15 lines
525 B
Diff
# Fix heimdal timestamp reading
|
|
--- a/adman/kerberos.py
|
|
+++ b/adman/kerberos.py
|
|
@@ -157,7 +157,9 @@ def parse_klist_output(output):
|
|
if line.startswith('\t'):
|
|
return handle_ticket
|
|
|
|
- parts = line.split(' ')
|
|
+ # The Heimdal timestamps look like 'Jun 8 14:00:01 2022' with a double blank on position 4
|
|
+ # To circumvent this issue we use re.match instead of split
|
|
+ parts = re.match(r'(.+)\s\s([^\d].+)\s\s([^\d].+)',line).groups()
|
|
|
|
issued = parse_time(parts[0])
|
|
|