# By Adam Yanalunas (2) and Landon Fuller (1)
# Via Adam Yanalunas
* 'master' of https://github.com/soffes/ssziparchive:
Updated podspec for v0.3.2
Relative symlink fixture for new symlink detection in #91
Replace symlink heuristic with a well-defined test.
This adds a zipArchiveShouldUnzipFileAtIndex, which is called before
each call to zipArchiveWillUnzipFileAtIndex, allowing a delegate to
cancel the unzip progress.
# By Andreas Dangel (2) and others
# Via Erickson Pacioles (1) and Sam Soffes (1)
* 'master' of https://github.com/soffes/ssziparchive:
Fixed warnings from Xcode Analyzer
Fix warnings on 64-bit
Add a unit test for zipArchiveProgressEvent.
Add a progress event while unzipping. The progress is determined by the compressed file size and zip entries.
Removing the clang analyzer silencer in these lines fixed another clang analyzer warning that appeared in line 1534.
In addition these lines do not cause a static analyzer warning in latest Xcode any longer.
Tested with Xcode 5.0.2
As per the PKWARE ZIP File Format Specification (6.3.2), this
patch tests the file 'version made by' field for the UNIX (3)
constant, and then interprets the external file attributes accordingly,
assuming an st_mode field in the high 16 bits.
This test adds a fixture RelativeSymlinks.zip with the following
structure:
RelativeSymbolicLink
├── symlinkedFile
├── symlinkedFolder
└── symlinks
├── fileSymlink -> ../symlinkedFile
└── folderSymlink -> ../symlinkedFolder
The test checks if both `fileSymlink` and `folderSymlink` still point to
the respective files in the parent directory after the fixture has been
unzipped.
Before, the library resolved symbolic links that are relative
into absolute paths, using the current working directory of the process
that's doing the unzipping, which to me seems pretty wrong.
This was due to using -[NSURL fileURLWithPath:], which transforms
relative URLs to absolute URLs automatically.
I don't see much of a reason to use NSFileManager here, so I made that
use symlink() directly. Alternatively, one could also use -[NSURL
URLWithString:].
This keeps relative symlinks relative after unzipping.