Ticket #70936: patch-libarchive-3.7-fix-tests-tiger.diff

File patch-libarchive-3.7-fix-tests-tiger.diff, 996 bytes (added by ballapete (Peter "Pete" Dyballa), 27 hours ago)

Updated patch file for C source files libarchive/test/test_entry.c and tar/test/test_option_acls.c

  • libarchive/test/test_entry.c

    diff --git libarchive/test/test_entry.c libarchive/test/test_entry.c
    index f205764..33cefe4 100644
    DEFINE_TEST(test_entry) 
    426426#endif
    427427
    428428#if defined(__FreeBSD__) || defined(__APPLE__)
     429#ifndef UF_HIDDEN
     430#define UF_HIDDEN   0x00008000
     431#endif
    429432        /* Test archive_entry_copy_fflags_text_w() */
    430433        archive_entry_copy_fflags_text_w(e, L" ,nouappnd, nouchg, dump,hidden");
    431434        archive_entry_fflags(e, &set, &clear);
  • tar/test/test_option_acls.c

    diff --git tar/test/test_option_acls.c tar/test/test_option_acls.c
    index f7451c8..de9b9b0 100644
    static const acl_perm_t acl_perms[] = { 
    4343    ACL_WRITE_EXTATTRIBUTES,
    4444    ACL_READ_SECURITY,
    4545    ACL_WRITE_SECURITY,
     46#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
    4647    ACL_CHANGE_OWNER,
    4748    ACL_SYNCHRONIZE
     49#else
     50    ACL_CHANGE_OWNER
     51#endif
    4852#else /* !ARCHIVE_ACL_DARWIN */
    4953    ACL_EXECUTE,
    5054    ACL_WRITE,