瀏覽代碼

acl platform code: fix acl set return type (master)

Thomas Waldmann 7 年之前
父節點
當前提交
b76661ab67
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/borg/platform/darwin.pyx
  2. 1 1
      src/borg/platform/freebsd.pyx
  3. 1 1
      src/borg/platform/linux.pyx

+ 1 - 1
src/borg/platform/darwin.pyx

@@ -12,7 +12,7 @@ cdef extern from "sys/acl.h":
 
     int acl_free(void *obj)
     acl_t acl_get_link_np(const char *path, int type)
-    acl_t acl_set_link_np(const char *path, int type, acl_t acl)
+    int acl_set_link_np(const char *path, int type, acl_t acl)
     acl_t acl_from_text(const char *buf)
     char *acl_to_text(acl_t acl, ssize_t *len_p)
     int ACL_TYPE_EXTENDED

+ 1 - 1
src/borg/platform/freebsd.pyx

@@ -21,7 +21,7 @@ cdef extern from "sys/acl.h":
 
     int acl_free(void *obj)
     acl_t acl_get_link_np(const char *path, int type)
-    acl_t acl_set_link_np(const char *path, int type, acl_t acl)
+    int acl_set_link_np(const char *path, int type, acl_t acl)
     acl_t acl_from_text(const char *buf)
     char *acl_to_text_np(acl_t acl, ssize_t *len, int flags)
     int ACL_TEXT_NUMERIC_IDS

+ 1 - 1
src/borg/platform/linux.pyx

@@ -25,7 +25,7 @@ cdef extern from "sys/acl.h":
 
     int acl_free(void *obj)
     acl_t acl_get_file(const char *path, int type)
-    acl_t acl_set_file(const char *path, int type, acl_t acl)
+    int acl_set_file(const char *path, int type, acl_t acl)
     acl_t acl_from_text(const char *buf)
     char *acl_to_text(acl_t acl, ssize_t *len)