Home | History | Annotate | only in /src/usr.bin/unzip
History log of /src/usr.bin/unzip
RevisionDateAuthorComments
 1.8 11-Nov-2024  martin Add support for static linking of libzstd
 1.7 28-Jul-2019  joerg branches: 1.7.12;
Explicitly link against libpthread and liblzma to make static linking
happy. Newer libarchive supports LZMA compression in zip files.
 1.6 21-May-2017  riastradh branches: 1.6.10;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
 1.5 22-Apr-2017  pgoyette Add crypto stuff on top of what we already have, rather than replacing!
 1.4 21-Apr-2017  christos fix conditional
 1.3 21-Apr-2017  christos new libarchive need crypto.
 1.2 18-Aug-2011  christos branches: 1.2.24;
revert 4 digit year printing and add -y option to print 4 digit years.
 1.1 25-Jun-2009  joerg Add work-in-progress unzip(1) frontend for libarchive.
Derived from FreeBSD's unzip.
 1.2.24.1 26-Apr-2017  pgoyette Sync with HEAD
 1.6.10.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.7.12.1 02-Aug-2025  perseant Sync with HEAD
 1.14 18-Feb-2021  wiz New sentence, new line.
 1.13 18-Feb-2021  christos Add support for password protected zip files (Alex Kozlov)
Also some KNF
 1.12 18-Feb-2021  christos mention zipx, from Alex Kozlov
 1.11 21-Dec-2015  christos 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)
 1.10 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.9 20-Jul-2013  wiz Use Mt for email addresses.
 1.8 18-Aug-2011  christos branches: 1.8.2; 1.8.8; 1.8.12;
revert 4 digit year printing and add -y option to print 4 digit years.
 1.7 06-Sep-2009  wiz Add -C support. Document it.
Ok joerg

Improve -t output a bit (still different from Infozip unzip, but better).
 1.6 24-Aug-2009  joerg Fix synopsis
 1.5 23-Aug-2009  wiz Fix typos.
 1.4 22-Aug-2009  joerg Add support for -c, make the output of -l/-v more similar to infozip.
 1.3 22-Aug-2009  joerg Add -p and -q support.
 1.2 26-Jun-2009  wiz Remove superfluous Pp. Grammar improvement, typo fix, sort sections, fix Xr.
 1.1 25-Jun-2009  joerg Add work-in-progress unzip(1) frontend for libarchive.
Derived from FreeBSD's unzip.
 1.8.12.1 23-Jul-2013  riastradh sync with HEAD
 1.8.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.28 10-Sep-2021  rillig usr.bin: remove unnecessary lint comment CONSTCOND

Since 2021-01-31, lint no longer warns about 'do ... while (0)'.

No functional change.
 1.27 18-Feb-2021  christos Remove the "original line"
Fix lint comment
 1.26 18-Feb-2021  christos Add support for password protected zip files (Alex Kozlov)
Also some KNF
 1.25 18-Feb-2021  christos Build with linux/glibc (Alex Kozlov)
 1.24 19-Jul-2018  joerg Ignore malformed directory entries as created by Dropbox ("/").
 1.23 20-Apr-2017  joerg branches: 1.23.10; 1.23.12;
Use libarchive 3.x interface and not obsolete 2.x versions.
 1.22 21-Dec-2015  christos branches: 1.22.2; 1.22.4;
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)
 1.21 03-Dec-2015  christos simplify.
 1.20 03-Dec-2015  christos 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.
 1.19 06-Sep-2011  joerg error_count is unsigned, so use %ju
 1.18 06-Sep-2011  joerg Use __dead and __printflike. Fix one format string and one error()
argument as hinted by the new format string checking.
 1.17 18-Aug-2011  christos revert 4 digit year printing and add -y option to print 4 digit years.
 1.16 17-Aug-2011  christos kill 2 digit year format.
 1.15 14-Jul-2011  wiz Fix a logic error: when renaming a file, strip trailing \n from file name.
 1.14 10-May-2010  joerg Kill a left-over break from the for-loop that vanished in 1.13.
Issue noticed by tnn.
 1.13 29-Apr-2010  joerg Switch to the less restrictive binary detection algorithm from zip 3.0e.
 1.12 18-Feb-2010  joerg Only print the "Archive: xxx" header if not in extract-to-stdout mode.
 1.11 09-Jan-2010  mbalmer When restoring files, use the mode, not the filetype, for the mode.
From FreeBSD (r201630)
 1.10 25-Oct-2009  wiz Match directory extraction output with Infozip.
 1.9 30-Sep-2009  wiz Don't print "Archive:" line if quiet flag is set.
 1.8 18-Sep-2009  joerg Implement rename query.
 1.7 06-Sep-2009  wiz Add -C support. Document it.
Ok joerg

Improve -t output a bit (still different from Infozip unzip, but better).
 1.6 04-Sep-2009  wiz Make output for -v/-l match Infozip unzip more closely.
Mention archive name, like Infozip unzip.
Add missing options to usage.
Ok joerg@
 1.5 04-Sep-2009  joerg Fix output spacing for summary in -v.
 1.4 23-Aug-2009  wiz Fix typos.
 1.3 22-Aug-2009  joerg Add support for -c, make the output of -l/-v more similar to infozip.
 1.2 22-Aug-2009  joerg Add -p and -q support.
 1.1 25-Jun-2009  joerg Add work-in-progress unzip(1) frontend for libarchive.
Derived from FreeBSD's unzip.
 1.22.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.22.2.1 26-Apr-2017  pgoyette Sync with HEAD
 1.23.12.1 10-Jun-2019  christos Sync with HEAD
 1.23.10.1 28-Jul-2018  pgoyette Sync with HEAD

RSS XML Feed