]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/metadata.py
Use *native* type sizes in file attr guard
[bup.git] / lib / bup / metadata.py
index 8a84f11747e1ca6725275683f8b736501eebc8af..390c5acd0b3fea214d8ffa5e55374440ebff679e 100644 (file)
@@ -44,8 +44,9 @@ except ImportError:
     get_linux_file_attr = set_linux_file_attr = None
 
 
+# See the bup_get_linux_file_attr() comments.
 _suppress_linux_file_attr = \
-    sys.byteorder == 'big' and struct.calcsize('=l') > struct.calcsize('=i')
+    sys.byteorder == 'big' and struct.calcsize('@l') > struct.calcsize('@i')
 
 def check_linux_file_attr_api():
     global get_linux_file_attr, set_linux_file_attr