diff --git a/borg/archiver.py b/borg/archiver.py index 98f2a0e41..a75bef9ec 100644 --- a/borg/archiver.py +++ b/borg/archiver.py @@ -438,7 +438,7 @@ def do_list(self, args): pass try: mtime = datetime.fromtimestamp(bigint_to_int(item[b'mtime']) / 1e9) - except ValueError: + except OverflowError: # likely a broken mtime and datetime did not want to go beyond year 9999 mtime = datetime(9999, 12, 31, 23, 59, 59) if b'source' in item: diff --git a/setup.py b/setup.py index b7a43daa2..2ba2de475 100644 --- a/setup.py +++ b/setup.py @@ -211,7 +211,7 @@ def run(self): Extension('borg.chunker', [chunker_source]), Extension('borg.hashindex', [hashindex_source]) ] - if sys.platform.startswith('linux'): + if sys.platform == 'linux': ext_modules.append(Extension('borg.platform_linux', [platform_linux_source], libraries=['acl'])) elif sys.platform.startswith('freebsd'): ext_modules.append(Extension('borg.platform_freebsd', [platform_freebsd_source]))