| 1115 | } |
| 1116 | |
| 1117 | int set_xattr_acl(const char *fname, int is_access_acl, const char *buf, size_t buf_len) |
| 1118 | { |
| 1119 | const char *name = is_access_acl ? XACC_ACL_ATTR : XDEF_ACL_ATTR; |
| 1120 | if (sys_lsetxattr(fname, name, buf, buf_len) < 0) { |
| 1121 | rsyserr(FERROR_XFER, errno, |
| 1122 | "set_xattr_acl: lsetxattr(%s,\"%s\") failed", |
| 1123 | full_fname(fname), name); |
| 1124 | return -1; |
| 1125 | } |
| 1126 | return 0; |
| 1127 | } |
| 1128 | |
| 1129 | int del_def_xattr_acl(const char *fname) |
| 1130 | { |
no test coverage detected