- if platform.architecture()[0] == "32bit":
- self.LASTLOG_STRUCT = self.LASTLOG_STRUCT_32
- record_size = record_size_32
- elif platform.architecture()[0] == "64bit":
+ # some 64bit arches have 32bit-compatible lastlog structures, others don't,
+ # in apparently incoherent ways, so hardcode a list...
+ if platform.machine() in ('aarch64', 's390x'):