Commit Graph

33 Commits

Author SHA1 Message Date
joerg fb6d0a4e0d Explicitly link against libpthread and liblzma to make static linking
happy. Newer libarchive supports LZMA compression in zip files.
2019-07-28 12:44:36 +00:00
joerg e077d7edbf Ignore malformed directory entries as created by Dropbox ("/"). 2018-07-19 18:04:25 +00:00
riastradh ef315f7931 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.
2017-05-21 15:28:36 +00:00
pgoyette a6cdaa71c9 Add crypto stuff on top of what we already have, rather than replacing! 2017-04-22 05:32:40 +00:00
christos f067861335 fix conditional 2017-04-21 23:49:17 +00:00
christos 1b32fecb19 new libarchive need crypto. 2017-04-21 23:06:18 +00:00
joerg c57cca78b1 Use libarchive 3.x interface and not obsolete 2.x versions. 2017-04-20 13:11:35 +00:00
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