Commit graph

16 commits

Author SHA1 Message Date
shattered
2f6c837daa Fix PR/42308 "munpack no longer preserve filenames", using the patch from
Debian bug 212283.
2012-02-22 21:01:53 +00:00
tez
7f78db34a5 add patch for CVE-2011-4919 (bad permissions on created files) 2012-01-10 21:09:55 +00:00
dholland
0cbd21fb1c Fix broken clang build. 2011-08-01 04:08:51 +00:00
is
60a61d99a7 Fix decoding of message/partial. Explanation:
mpack-1.6 introduced more security on Unix-like systems by creating
and using a helper function, os_createnewfile, that uses O_CREAT|O_EXCL.
Unfortunately, it also uses it to write the total number of parts
temporary file, which fails if more than one part contains the
total number (as mpack creates them!)

The new code compares old and new totals, if both exist, and only
writes the new total, if the old didn't exist. Problem solved and
one sanity check more at the same time.
2010-11-17 22:24:40 +00:00
dholland
9e21f7e065 Add patch comment. I had this lying around uncommitted for some reason. 2010-06-15 04:18:04 +00:00
is
492c26c0a7 Remove one more /usr/tmp. 2010-04-20 10:26:40 +00:00
dholland
c17b5fa3a1 Add comments to two patches. These changes were sitting uncommitted in
one of my trees; I don't remember why they didn't get committed when I
updated the package a while back.
2010-01-15 23:47:14 +00:00
dholland
c643c8c681 Update to 1.6.
pkgsrc changes:

- Destdir support.
- Include fixes for implicit function declarations probably broken on LP64.
- Fix for 64-bit time_t world in netbsd-current.
- Fix some pkglint.
- Suppress warning about mktemp() on NetBSD; usage checked.

Upstream changes:

1.6 -- Jul 21 2003
Use automake and a little bit of autoconf

convert K&R declarations/definitions to ANSI

Fixed buffer overflow in getParam and getDispositionFilename (debian patch)
Fixed possible crash in ParseContent (debian patch)

fix typo in getDispositionFilename (from Steve Friedl)

use system strcasecmp and getopt where possible.

use O_EXCL where available when creating files.
2009-02-15 20:12:17 +00:00
minskim
301f0fa7e0 Remove conflicting declaration of malloc(); include stdlib.h instead. 2006-06-09 15:34:31 +00:00
joerg
188f4ddbbc Fix errno. Use stdlib.h in one place as well. 2005-12-19 00:13:38 +00:00
is
377219660f Make this compile under Solaris, too. Reviewed by wiz@netbsd.org 2002-12-05 16:45:21 +00:00
jlam
8a698ad8f1 Use separate patches are separate files, and mark as USE_BUILDLINK_ONLY. 2001-08-20 02:15:36 +00:00
jwise
53d3406d50 Fix #ifdef unix issues 1999-02-27 01:14:55 +00:00
agc
86db14e819 Add NetBSD RCS Ids. 1998-08-07 10:35:47 +00:00
tron
88794193b7 Adapt this package for NetBSD. 1998-02-26 00:11:06 +00:00
tron
59f81f7185 Initial import of FreeBSD's "mpack" port. 1998-02-25 23:51:08 +00:00