Commit Graph

26 Commits

Author SHA1 Message Date
christos 4fff4f53aa From FreeBSD:
- Whitespace cleanup
- Pass a filename rather than fd to libarchive (should work with 2.8+)
- Accept zipfiles from stdin
- Extract common code from extract()/extract_stdout() to extract2fd() (pending)
2015-12-21 17:17:02 +00:00
christos 048e0d6b52 simplify. 2015-12-03 20:01:19 +00:00
christos 96135c5b6f PR/50496: Alex Kozlov: teach unzip to extract symlinks
Our libarchive does not handle symliks yet, but later versions do.
Set mode and times for symlinks. Finally handle hardlinks for
completion although they are not handled yet by librarchive.
2015-12-03 20:00:12 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
joerg 60bd81b021 error_count is unsigned, so use %ju 2011-09-06 18:43:41 +00:00
joerg 8f7d1f2721 Use __dead and __printflike. Fix one format string and one error()
argument as hinted by the new format string checking.
2011-09-06 18:42:13 +00:00
christos cb81bcdf23 revert 4 digit year printing and add -y option to print 4 digit years. 2011-08-18 11:29:27 +00:00
christos e9332b1686 kill 2 digit year format. 2011-08-17 13:37:39 +00:00
wiz e1881f54f7 Fix a logic error: when renaming a file, strip trailing \n from file name. 2011-07-14 06:35:30 +00:00
joerg 0513806c62 Kill a left-over break from the for-loop that vanished in 1.13.
Issue noticed by tnn.
2010-05-10 15:45:22 +00:00
joerg ee86edd569 Switch to the less restrictive binary detection algorithm from zip 3.0e. 2010-04-29 06:32:19 +00:00
joerg 149eb58444 Only print the "Archive: xxx" header if not in extract-to-stdout mode. 2010-02-18 15:51:57 +00:00
mbalmer f5e8307179 When restoring files, use the mode, not the filetype, for the mode.
From FreeBSD (r201630)
2010-01-09 09:27:42 +00:00
wiz 50a251ce93 Match directory extraction output with Infozip. 2009-10-25 20:14:50 +00:00
wiz 5746a940f5 Don't print "Archive:" line if quiet flag is set. 2009-09-30 10:04:54 +00:00
joerg 1d5ec6dab9 Implement rename query. 2009-09-18 13:05:19 +00:00
wiz 5705f52697 Add -C support. Document it.
Ok joerg

Improve -t output a bit (still different from Infozip unzip, but better).
2009-09-06 20:19:59 +00:00
wiz a3879acf53 Make output for -v/-l match Infozip unzip more closely.
Mention archive name, like Infozip unzip.
Add missing options to usage.
Ok joerg@
2009-09-04 14:23:24 +00:00
joerg b82a2b6d21 Fix output spacing for summary in -v. 2009-09-04 13:02:52 +00:00
joerg 84bc34c228 Fix synopsis 2009-08-24 08:38:39 +00:00
wiz f3d0c4e780 Fix typos. 2009-08-23 15:50:35 +00:00
joerg 44b11f39e8 Add support for -c, make the output of -l/-v more similar to infozip. 2009-08-22 17:19:11 +00:00
joerg 5e2ef53f3e Add -p and -q support. 2009-08-22 02:19:42 +00:00
wiz 0f05513297 Remove superfluous Pp. Grammar improvement, typo fix, sort sections, fix Xr. 2009-06-26 09:31:04 +00:00
joerg a0922fbd98 Add work-in-progress unzip(1) frontend for libarchive.
Derived from FreeBSD's unzip.
2009-06-25 20:27:05 +00:00