瀏覽代碼

xattr: fix darwin flistxattr ctypes prototype

Thomas Waldmann 7 年之前
父節點
當前提交
2d37c9d3f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/xattr.py

+ 1 - 1
src/borg/xattr.py

@@ -245,7 +245,7 @@ if sys.platform.startswith('linux'):  # pragma: linux only
 elif sys.platform == 'darwin':  # pragma: darwin only
     libc.listxattr.argtypes = (c_char_p, c_char_p, c_size_t, c_int)
     libc.listxattr.restype = c_ssize_t
-    libc.flistxattr.argtypes = (c_int, c_char_p, c_size_t)
+    libc.flistxattr.argtypes = (c_int, c_char_p, c_size_t, c_int)
     libc.flistxattr.restype = c_ssize_t
     libc.setxattr.argtypes = (c_char_p, c_char_p, c_char_p, c_size_t, c_uint32, c_int)
     libc.setxattr.restype = c_int