Ticket #36169: patch-acls-unpack-error.diff

File patch-acls-unpack-error.diff, 774 bytes (added by jimjag (Jim Jagielski), 12 years ago)

Actual patch file to add logging/error reporting

  • acls.c

    This patch causes rsync to report which files caused the unpack_smb_acl()
    error, instead of just noting that one happened. This allows the end
    use to check the ACL of the reported file by hand.
    
    To use this patch, run these commands for a successful build:
    
        patch -p1 <patches/fileflags.diff
        patch -p1 <patches/crtimes.diff
        patch -p1 <patches/hfs-compression.diff
        patch -p1 <patches/hfs-compression-options.diff
        patch -p1 <patches/acls-unpack-error.diff
        ./prepare-source
        ./configure
        make
    
    diff --git a/acls.c b/acls.c
    a b  
    526526
    527527                sys_acl_free_acl(sacl);
    528528                if (!ok) {
     529                        rsyserr(FERROR_XFER, errno, "get_acl: unpack_smb_acl(%s)", fname);
    529530                        return -1;
    530531                }
    531532        } else if (no_acl_syscall_error(errno)) {