CMake/Utilities/cmlibarchive
Brad King 297d9f2032 libarchive: Cast mode constants to mode_t in case it is signed
At least one compiler (Borland) defines mode_t as just "short" which is
signed.  This breaks code like

  switch(archive_entry_filetype(e)) {
    case AE_IFREG:
    ...
  }

if AE_IFREG and other constants have a longer signed type (int) because
sign extension of the mode_t return type from archive_entry_filetype
changes its value.  Avoid the problem by ensuring the type of the
constants matches mode_t.

This change was originally made in commit a73acfbe (Fix for mode_t with
signed types, 2009-11-07).  Port it to the new libarchive snapshot.
2011-12-23 16:04:58 -05:00
..
build libarchive: Fix typo in CheckFileOffsetBits 2011-12-23 16:04:58 -05:00
libarchive libarchive: Cast mode constants to mode_t in case it is signed 2011-12-23 16:04:58 -05:00
.gitattributes libarchive: Add .gitattributes for indentation with tab 2011-12-22 10:38:32 -05:00
CMakeLists.txt libarchive: Clean up configuration within CMake build 2011-12-23 16:04:58 -05:00
COPYING Merge branch 'libarchive-upstream' into update-libarchive 2011-12-20 11:54:25 -05:00
CTestConfig.cmake Merge branch 'libarchive-upstream' into update-libarchive 2011-12-20 11:54:25 -05:00
README-CMake.txt libarchive: Add README-CMake.txt 2011-12-22 10:38:33 -05:00