aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/unzip
Commit message (Collapse)AuthorAgeFilesLines
* libarchive: merge from vendor branchMartin Matuska2024-04-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Libarchive 3.7.3 New features: #1941 uudecode filter: support file name and file mode in raw mode #1943 7-zip reader: translate Windows permissions into UNIX permissions #1962 zstd filter now supports the "long" write option #2012 add trailing letter b to bsdtar(1) substitute pattern #2031 PCRE2 support #2054 add support for long options "--group" and "--owner" to tar(1) Security fixes: #2101 Fix possible vulnerability in tar error reporting introduced in f27c173 Important bugfixes: #1974 ISO9660: preserve the natural order of links #2105 rar5: fix infinite loop if during rar5 decompression the last block produced no data #2027 xz filter: fix incorrect eof at the end of an lzip member #2043 zip: fix end-of-data marker processing when decompressing zip archives PR: 278315 (exp-run) MFC after: 1 week
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-165-5/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* unzip: swtich to bsdunzip from libarchiveMartin Matuska2023-08-046-1349/+181
| | | | | | | | | Unzip from FreeBSD has been ported to libarchive. Change usr.bin/unzip to use bsdunzip from libarchive. Differential Revision: https://reviews.freebsd.org/D41239 PR: 272845 (exp-run) MFC after: 1 month
* unzip(1): Comma after e.g.Warner Losh2023-06-271-1/+1
| | | | | | | Add comma after e.g. to make igor happy (oh, and I suppose to conform to normal English grammar rules). Sponsored by: Netflix
* unzip: add -O/-I encoding supportMingye Wang2023-06-272-3/+14
| | | | | | | | These are for compatibility with the info-zip version of unzip. PR: 271657 Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/752
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-7/+0
|
* unzip: Document optional member listYoshihiro Takahashi2023-01-022-3/+10
| | | | | | Submitted by: Pat Maddox (man page) PR: 267426 MFC after: 2 weeks
* unzip: Fix segmentation fault if a zip file contains buggy filename.Yoshihiro Takahashi2021-10-101-2/+13
| | | | | | | PR: 259011 Reported by: Robert Morris Submitted by: ak MFC after:: 1 week
* unzip: sync with NetBSD upstream to add passphrase supportYoshihiro Takahashi2021-09-252-10/+66
| | | | | | | | | | | | | | | - Add support for password protected zip archives. We use memset_s() rather than explicit_bzero() for more portable (See PR). - Use success/failure macro in exit() - Mention ZIPX format in unzip(1) Submitted by: Mingye Wang and Alex Kozlov (ak@) PR: 244181 Reviewed by: mizhka Obtained from: NetBSD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28892
* unzip: Sync with NetBSD upstream.Yoshihiro Takahashi2021-01-021-4/+10
| | | | | | | | | | | | | | | | - Ignore malformed directory entries as created by Dropbox ("/"). (rev 1.24) - Use libarchive 3.x interface: check result for archive_read_free() and don't call archive_read_close manually. (rev 1.23) - Always overwrite symlinks on extraction, ever if they're newer than entries in archive. - Use getline() rather than getdelim(). PR: 231827 Submitted by: ak Reviewed by: mm Obtained from: NetBSD MFC after: 2 weeks
* Don't explicitly specify c99 or gnu99 as the default is now gnu99.Xin LI2020-08-171-1/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=364292
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add missing section after .Xr referenceBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313663
* - Match directory extraction message with Infozip [1]Alex Kozlov2016-01-151-2/+5
| | | | | | | | | | - Add comment explaining masks in check_binary() Obtained from: NetBSD [1] Approved by: des Notes: svn path=/head/; revision=294108
* - Extract common code from extract()/extract_stdout() to extract2fd()Alex Kozlov2016-01-152-143/+91
| | | | | | | | | | - Update information about central directory handling Obtained from: NetBSD Approved by: des Notes: svn path=/head/; revision=294107
* - Properly set mode and atime/ctime for symlinksAlex Kozlov2015-12-131-6/+10
| | | | | | | Approved by: des Notes: svn path=/head/; revision=292172
* - Allow to extract symlinksAlex Kozlov2015-12-112-34/+75
| | | | | | | | | | | | - Implement 4-digit year format listing (-y option) - Improve detection of text files - Use %ju for error_count as it is unsigned Obtained from: NetBSD Approved by: des Notes: svn path=/head/; revision=292127
* - Remove stray whitespacesAlex Kozlov2015-12-111-3/+2
| | | | | | | Approved by: des Notes: svn path=/head/; revision=292126
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-273-17/+15
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-2/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2013-10-131-0/+4
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256419
| * | sync from headSimon J. Gerraty2013-04-121-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync from headSimon J. Gerraty2012-11-041-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | unzip: Don't subvert vfs.timestamp_precision when setting atime to now.Jilles Tjoelker2015-03-151-15/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, preserve nanoseconds from libarchive, even though the zip file format does not currently support nanoseconds in timestamps. Notes: svn path=/head/; revision=280117
* | | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* | | Replace deprecated (or remove obsolete) libarchive 2.8 functionsMartin Matuska2013-03-221-1/+1
| |/ |/| | | | | | | | | | | with libarchive 3.0 counterparts Notes: svn path=/head/; revision=248612
* | Remove contractions.Joel Dahl2012-10-071-1/+1
|/ | | | Notes: svn path=/head/; revision=241331
* Pass a filename, rather than a file descriptor, to libarchive.Dag-Erling Smørgrav2012-05-291-10/+5
| | | | | | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> MFC after: 1 week Notes: svn path=/head/; revision=236226
* Document the unzip(1) '-Z' option implemented in r234206.Glen Barber2012-05-111-1/+11
| | | | | | | | Submitted by: swills (via hacker lounge) MFC after: 3 days Notes: svn path=/head/; revision=235252
* Correct my name in the copyright statement.Dag-Erling Smørgrav2012-04-152-2/+2
| | | | Notes: svn path=/head/; revision=234311
* Partially implement zipinfo (-Z) support.Kevin Lo2012-04-131-38/+71
| | | | | | | | | | | This fixes some test failures seen with perl 5.12 and 5.14. PR: bin/166895 Submitted by: swills MFC after: 3 days Notes: svn path=/head/; revision=234206
* Remove superfluous paragraph macro.Joel Dahl2012-03-251-1/+0
| | | | Notes: svn path=/head/; revision=233456
* fgets(3) returns a pointer, so compare against NULL, not integer 0.Kevin Lo2012-01-131-1/+1
| | | | Notes: svn path=/head/; revision=230044
* Reencode files from latin1 to UTF-8.Ulrich Spörlein2011-12-302-2/+2
| | | | | | | | | | This makes a tiny percentage of entries in calendars ugly for latin1 users, but fixes them for UTF-8 users. This badly needs a solution involving locale-dependent re-encoding. Notes: svn path=/head/; revision=228991
* Fix broken mdoc.Ulrich Spörlein2011-08-011-1/+1
| | | | | | | | Found by: manlint Approved by: re (kib) Notes: svn path=/head/; revision=224584
* Fix typo in last commit.Gleb Smirnoff2010-10-211-1/+1
| | | | | | | Submitted by: bcr Notes: svn path=/head/; revision=214174
* Document possibility to read from stdin.Gleb Smirnoff2010-10-211-1/+5
| | | | Notes: svn path=/head/; revision=214140
* Make it possible to read input from stdin.Gleb Smirnoff2010-10-211-2/+4
| | | | | | | | | Without this change I don't see a way to unpack a multivolume archive without wasting disk space for a temporary file. Notes: svn path=/head/; revision=214137
* Check return value from archive_read_new().Xin LI2010-06-091-1/+3
| | | | | | | | | | Found with: Coverity Prevent(tm) CID: 8462 Reviewed by: des MFC after: 1 week Notes: svn path=/head/; revision=208957
* Fixed static linkage.Ruslan Ermilov2010-02-261-2/+2
| | | | Notes: svn path=/head/; revision=204352
* Bump .Dd for r203977Gavin Atkinson2010-02-161-1/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=203978