X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/5befb07913169aa9449c29914401fccaa544677a..c8a8b4a7fd58ee1ee8b055a1559c71c9921d8753:/acls.diff diff --git a/acls.diff b/acls.diff index 071b63e..b7a8a36 100644 --- a/acls.diff +++ b/acls.diff @@ -11,7 +11,7 @@ To use this patch, run these commands for a successful build: --- old/acls.c +++ new/acls.c -@@ -98,6 +98,18 @@ static const char *str_acl_type(SMB_ACL_ +@@ -97,6 +97,18 @@ static const char *str_acl_type(SMB_ACL_ : "unknown SMB_ACL_TYPE_T"; } @@ -30,7 +30,7 @@ To use this patch, run these commands for a successful build: static int calc_sacl_entries(const rsync_acl *racl) { /* A System ACL always gets user/group/other permission entries. */ -@@ -522,6 +534,96 @@ int get_acl(const char *fname, statx *sx +@@ -545,6 +557,96 @@ int get_acl(const char *fname, stat_x *s return 0; } @@ -126,10 +126,10 @@ To use this patch, run these commands for a successful build: + /* === Send functions === */ - /* The general strategy with the tag_type <-> character mapping is that -@@ -604,6 +706,11 @@ static void send_rsync_acl(rsync_acl *ra + /* Send the ida list over the file descriptor. */ +@@ -620,6 +722,11 @@ static void send_rsync_acl(rsync_acl *ra * This also frees the ACL data. */ - void send_acl(statx *sxp, int f) + void send_acl(stat_x *sxp, int f) { + if (protocol_version < 30) { + old_send_acl(sxp, f); @@ -139,7 +139,7 @@ To use this patch, run these commands for a successful build: if (!sxp->acc_acl) { sxp->acc_acl = create_racl(); rsync_acl_fake_perms(sxp->acc_acl, sxp->st.st_mode); -@@ -621,6 +728,160 @@ void send_acl(statx *sxp, int f) +@@ -637,6 +744,160 @@ void send_acl(stat_x *sxp, int f) } } @@ -300,7 +300,7 @@ To use this patch, run these commands for a successful build: /* === Receive functions === */ static uint32 recv_acl_access(uchar *name_follows_ptr, int f) -@@ -738,6 +999,11 @@ static int recv_rsync_acl(item_list *rac +@@ -759,6 +1020,11 @@ static int recv_rsync_acl(item_list *rac /* Receive the ACL info the sender has included for this file-list entry. */ void receive_acl(struct file_struct *file, int f) { @@ -314,7 +314,7 @@ To use this patch, run these commands for a successful build: if (S_ISDIR(file->mode)) --- old/compat.c +++ new/compat.c -@@ -163,13 +163,6 @@ void setup_protocol(int f_out,int f_in) +@@ -160,13 +160,6 @@ void setup_protocol(int f_out,int f_in) if (protocol_version < 30) { if (append_mode == 1) append_mode = 2;