#
76c0e1cf |
| 12-Sep-2017 |
otto <otto@openbsd.org> |
there is no offical way to get the max value of time_t, but this one works on any sensible posix system (in which time_t must be an integer type) ok deraadt@ millert@
|
#
234335be |
| 17-Nov-2015 |
mmcc <mmcc@openbsd.org> |
int -> size_t for a len field
ok guenther@, deraadt@
|
#
8b72bc25 |
| 19-Mar-2015 |
guenther <guenther@openbsd.org> |
Use struct timespec internally. This gives nanosecond precision to pax -rw and a basis for support of mtime and atime values in pax-format extended header records.
ok millert@
|
#
5316f7a4 |
| 17-Mar-2015 |
guenther <guenther@openbsd.org> |
Add PAX_IS_{REG,HARDLINK,LINK} macros to simply many file type tests
ok millert@
|
#
2dbd6dc5 |
| 09-Mar-2015 |
guenther <guenther@openbsd.org> |
Unrevert post-unlock: * Prevent an archive from esacaping the current directory by itself: when extracting a symlink whose value is absolute or contains ".." components, just create a zero-length
Unrevert post-unlock: * Prevent an archive from esacaping the current directory by itself: when extracting a symlink whose value is absolute or contains ".." components, just create a zero-length normal file (with additional tracking of the mode and hardlinks to the symlink) until everything else is extracted, then go back and replace it with the requested link (if it's still that zero-length placeholder).
* For tar without -P, if a path in the archive has any ".." components then strip everything up to and including the last of them (if it ends in ".." then it becomes ".") This mostly follows GNU tar's behavior, except for 'tar tf' and 'tar xvf' we report the modified path that would be/was actually created instead of the raw path from the archive
Above two fixes prompted by a report from Daniel Cegielka (daniel.cegielka (at) gmail.com)
* For directories whose times or mode will be fixed up in the clean-up pass, record their dev+ino and then use open(O_DIRECTORY)+fstat() to verify that we're updating the correct directory before using futimens() and fchmod().
* Correct buffer overflow in handling of pax extension headers, caught by the memcpy() overlap check.
previously ok millert@ deraadt@
show more ...
|
#
ba265607 |
| 21-Feb-2015 |
guenther <guenther@openbsd.org> |
Recent changes haven't been completely stable, so revert for the 5.7 release
requested by deraadt@
|
#
a2b8fcdc |
| 11-Feb-2015 |
guenther <guenther@openbsd.org> |
Take II, this time without an incorrect mode test. For directories whose times or mode will be fixed up in the clean-up pass, record their dev+ino and then use open(O_DIRECTORY)+fstat() to verify tha
Take II, this time without an incorrect mode test. For directories whose times or mode will be fixed up in the clean-up pass, record their dev+ino and then use open(O_DIRECTORY)+fstat() to verify that we're updating the correct directory before using futimens() and fchmod().
ok sthen@ millert@
show more ...
|
#
793eb6f6 |
| 05-Feb-2015 |
sthen <sthen@openbsd.org> |
backout previous for now; issues seen with "tar: Directory vanished before restoring mode and times: ..." (and an error exit code, which breaks at least building ports). krw@ agrees.
|
#
e0e7b952 |
| 05-Feb-2015 |
guenther <guenther@openbsd.org> |
For directories whose times or mode will be fixed up in the clean-up pass, record their dev+ino and then use open(O_DIRECTORY)+fstat() to verify that we're updating the correct directory before using
For directories whose times or mode will be fixed up in the clean-up pass, record their dev+ino and then use open(O_DIRECTORY)+fstat() to verify that we're updating the correct directory before using futimens() and fchmod().
ok millert@
show more ...
|
#
b9fc9a72 |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
show more ...
|
#
08961bb1 |
| 23-Nov-2014 |
guenther <guenther@openbsd.org> |
Use PATH_MAX from <limits.h> instead of MAXPATHLEN from <sys/param.h> Eliminate a couple unneeded #includes
|
#
5647df80 |
| 30-Jan-2014 |
espie <espie@openbsd.org> |
abstraction for the sake of abstraction is distracting.
zap extra func pointer going to the same routines for all formats. okay millert@
|
#
4a51f016 |
| 09-Nov-2005 |
otto <otto@openbsd.org> |
Compute the sv4cpio "crc" (it's actualy just a checksum) as a 32bit number. Fixes crc computation on 64 bit archs. From Peter Philipp in PR 4606; looks right fgsch@, ok millert@
|
#
08cab283 |
| 20-Oct-2003 |
jmc <jmc@openbsd.org> |
typos from Jared Yanovich;
|
#
cd90c754 |
| 26-Jun-2003 |
deraadt <deraadt@openbsd.org> |
protos. this requires changing the api for the *trail() functions a bit
|
#
29295d1c |
| 02-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
da60b202 |
| 18-Oct-2002 |
millert <millert@openbsd.org> |
Pull in some changes from NetBSD o When extracting GNU tar archives, honor @LongLink long links/files o Add an option to prevent pax from prompting for the next volume upon premature end of archive.
|
#
4eb0b000 |
| 16-Oct-2002 |
millert <millert@openbsd.org> |
Fix comment typos; most from NetBSD and FreeBSD
|
#
8f3d3452 |
| 16-May-2001 |
mickey <mickey@openbsd.org> |
use proper str*cpy functions instead of home grown one, spaces; millert@ ok
|
#
f9da32f6 |
| 07-Feb-2001 |
millert <millert@openbsd.org> |
Honor TMPDIR environment variable and document the fact.
|
#
fd374817 |
| 23-Jul-1997 |
kstailey <kstailey@openbsd.org> |
tabify
|
#
ea4b1a1a |
| 06-Apr-1997 |
millert <millert@openbsd.org> |
Allow creation of archives with block sizes up to 64512 bytes but complain about non-portability if > 32256 bytes. Brought up by George Robbins <grr@shandakor.tharsis.com>
|
#
fd899314 |
| 27-Feb-1997 |
michaels <michaels@openbsd.org> |
fix pr system/124, reported by Janjaap van Velthooven (janjaap@stack.nl).
|
#
c7117be0 |
| 09-Dec-1996 |
deraadt <deraadt@openbsd.org> |
revert to spawning compress-ing program. normally we want extracts using 'z' to also work on .Z files, but libz does not deal with compressed data. Hacking the code to deal well with pipes has proven
revert to spawning compress-ing program. normally we want extracts using 'z' to also work on .Z files, but libz does not deal with compressed data. Hacking the code to deal well with pipes has proven very hard.
show more ...
|
#
3c2af966 |
| 27-Oct-1996 |
downsj <downsj@openbsd.org> |
Initial cut -C support in paxtar. Exceeds GNU tar by quite a bit. General pax still seems to work ok.
|