Ticket #23154: rsync-3.4.1-CVE-2026-41035.patch

File rsync-3.4.1-CVE-2026-41035.patch, 585 bytes (added by Joe Locash, 6 months ago)
  • rsync-3.4.1

    diff -Nuarp rsync-3.4.1.orig/xattrs.c rsync-3.4.1/xattrs.c
    old new void receive_xattr(int f, struct file_st  
    860860                rxa->num = num;
    861861        }
    862862
    863         if (need_sort && count > 1)
    864                 qsort(temp_xattr.items, count, sizeof (rsync_xa), rsync_xal_compare_names);
     863        if (need_sort && temp_xattr.count > 1)
     864                qsort(temp_xattr.items, temp_xattr.count, sizeof (rsync_xa), rsync_xal_compare_names);
    865865
    866866        ndx = rsync_xal_store(&temp_xattr); /* adds item to rsync_xal_l */
    867867