Up to [local] / src / bin / pax
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.64 / (download) - annotate - [select for diffs], Wed Apr 17 18:12:12 2024 UTC (7 weeks, 5 days ago) by jca
Branch: MAIN
CVS Tags: HEAD
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)
Provide a pax format specific option handler The existing tar_opt() implements support for -o write_opt=nodir for the old tar and ustar formats. We don't really want to support it for the pax format, and we want to be able to implement pax format specific options (even if there are none right now). ok millert@
Revision 1.63 / (download) - annotate - [select for diffs], Tue Apr 16 18:52:43 2024 UTC (7 weeks, 5 days ago) by jca
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored)
Correctly detect 'pax' format archives in append mode We expect that existing pax archives start with a global or extended header. If they don't, append operations will be done using ustar format. Fixes append mode on pax archives where pax(1) would bail out when appending to pax archives, falsely detecting a mismatch. Reading was unaffected. Reported by caspar@, ok caspar@ millert@
Revision 1.62 / (download) - annotate - [select for diffs], Sat Dec 9 23:00:11 2023 UTC (6 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5
Changes since 1.61: +2 -1 lines
Diff to previous 1.61 (colored)
Add basic write support for 'pax' format archives Keep writing archives in ustar format by default. People can test the posix 'pax' format using pax(1) -w -x pax ... or cpio -o -H pax ...; tar(1) can't exercise this code yet. Only long names file and link names are supported for now. With input and tests from caspar@, ok millert@
Revision 1.61 / (download) - annotate - [select for diffs], Sun Nov 26 16:04:17 2023 UTC (6 months, 2 weeks ago) by espie
Branch: MAIN
Changes since 1.60: +1 -13 lines
Diff to previous 1.60 (colored)
mark functions as static when they're unused elsewhere, makes the code slightly easier to understand. okay and tweak kn@
Revision 1.60 / (download) - annotate - [select for diffs], Mon Mar 23 20:04:19 2020 UTC (4 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)
in case we can't create intermediate directories because of permissions, show a less confusing track okay millert@ (with a small tweak to the error message by millert@)
Revision 1.59 / (download) - annotate - [select for diffs], Thu Sep 13 12:33:43 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.58: +1 -10 lines
Diff to previous 1.58 (colored)
Use the new libc uid_from_user() and gid_from_group() instead of the pax-specific functions in cache.c. OK guenther@
Revision 1.58 / (download) - annotate - [select for diffs], Tue Sep 12 17:11:11 2017 UTC (6 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)
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@
Revision 1.57 / (download) - annotate - [select for diffs], Thu Aug 25 01:44:55 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.56: +1 -6 lines
Diff to previous 1.56 (colored)
Replace name_{uid,gid}() with the libc routines user_from_uid() and group_from_gid(). Eliminate some superfluous strncpy() calls. ok millert@
Revision 1.56 / (download) - annotate - [select for diffs], Tue Aug 23 06:00:28 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.55: +2 -1 lines
Diff to previous 1.55 (colored)
Instead of doing strcmp(argv0), track the invocation mode (pax/tar/cpio) in a separate variable ok deraadt@
Revision 1.55 / (download) - annotate - [select for diffs], Sun Aug 14 04:47:52 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)
Replace u_quad_t with unsigned long long and replace "uqd" with "ull" in function names to match. Pull some tangled assignments out of conditions and use >>= where possible. ok millert@
Revision 1.54 / (download) - annotate - [select for diffs], Fri Jan 1 15:56:03 2016 UTC (8 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored)
don't declar main. from Michal Mazurek
Revision 1.42.4.1 / (download) - annotate - [select for diffs], Thu Apr 30 19:30:57 2015 UTC (9 years, 1 month ago) by guenther
Branch: OPENBSD_5_6
Changes since 1.42: +16 -2 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)
Backport trunk commit of 2015/03/09 04:23:29: tar/pax/cpio had multiple issues: * extracting a malicious archive could create files outside of the current directory without using pre-existing symlinks to 'escape', and could change the timestamps and modes on preexisting files * tar without -P would permit extraction of paths with ".." components * there was a buffer overflow in the handling of pax extension headers
Revision 1.49.2.1 / (download) - annotate - [select for diffs], Thu Apr 30 19:28:46 2015 UTC (9 years, 1 month ago) by guenther
Branch: OPENBSD_5_7
Changes since 1.49: +16 -2 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)
Backport trunk commit of 2015/03/09 04:23:29: tar/pax/cpio had multiple issues: * extracting a malicious archive could create files outside of the current directory without using pre-existing symlinks to 'escape', and could change the timestamps and modes on preexisting files * tar without -P would permit extraction of paths with ".." components * there was a buffer overflow in the handling of pax extension headers
Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 19 05:14:24 2015 UTC (9 years, 2 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.52: +7 -4 lines
Diff to previous 1.52 (colored)
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@
Revision 1.52 / (download) - annotate - [select for diffs], Sun Mar 15 21:53:09 2015 UTC (9 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)
Define chdname once in a .c and make it extern in the .h
Revision 1.51 / (download) - annotate - [select for diffs], Sun Mar 15 19:47:27 2015 UTC (9 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)
Handle tar -o by setting the tar_nodir directly instead of faking up a pax-like -o write_opt=nodir. ok millert@ otto@
Revision 1.50 / (download) - annotate - [select for diffs], Mon Mar 9 04:23:29 2015 UTC (9 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.49: +16 -2 lines
Diff to previous 1.49 (colored)
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@
Revision 1.49 / (download) - annotate - [select for diffs], Sat Feb 21 22:48:23 2015 UTC (9 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE
Branch point for: OPENBSD_5_7
Changes since 1.48: +2 -16 lines
Diff to previous 1.48 (colored)
Recent changes haven't been completely stable, so revert for the 5.7 release requested by deraadt@
Revision 1.48 / (download) - annotate - [select for diffs], Sun Feb 15 22:18:29 2015 UTC (9 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored)
Fix two bugs. The first affected tar files with the same directory listed twice with nothing created inside the directory in between the two instances of the directory. The other fixes extracting symlinks when the -C option is used. From guenther@ OK krw@
Revision 1.47 / (download) - annotate - [select for diffs], Thu Feb 12 23:44:57 2015 UTC (9 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.46: +6 -1 lines
Diff to previous 1.46 (colored)
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 its still that zero-length placeholder). This and previous symlink and ".." path fixes prompted by a report from Daniel Cegielka (daniel.cegielka (at) gmail.com) ok millert@
Revision 1.46 / (download) - annotate - [select for diffs], Thu Feb 12 01:30:47 2015 UTC (9 years, 4 months ago) by guenther
Branch: MAIN
Changes since 1.45: +7 -1 lines
Diff to previous 1.45 (colored)
Put the dev+ino table for cpio hardlink matching behind #ifndef NOCPIO ok millert@ deraadt@
Revision 1.45 / (download) - annotate - [select for diffs], Wed Feb 11 23:14:46 2015 UTC (9 years, 4 months ago) by guenther
Branch: MAIN
Changes since 1.44: +4 -2 lines
Diff to previous 1.44 (colored)
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@
Revision 1.44 / (download) - annotate - [select for diffs], Thu Feb 5 22:32:20 2015 UTC (9 years, 4 months ago) by sthen
Branch: MAIN
Changes since 1.43: +1 -3 lines
Diff to previous 1.43 (colored)
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.
Revision 1.43 / (download) - annotate - [select for diffs], Thu Feb 5 07:49:25 2015 UTC (9 years, 4 months ago) by guenther
Branch: MAIN
Changes since 1.42: +4 -2 lines
Diff to previous 1.42 (colored)
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@
Revision 1.42 / (download) - annotate - [select for diffs], Mon Jul 14 06:00:22 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE
Branch point for: OPENBSD_5_6
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)
Constipate st_hash()
Revision 1.41 / (download) - annotate - [select for diffs], Fri May 23 19:47:49 2014 UTC (10 years ago) by guenther
Branch: MAIN
Changes since 1.40: +4 -3 lines
Diff to previous 1.40 (colored)
Make the signal handler safe: block signals when updating data-structures that are walked by routines called from the signal handler and use dprintf() instead fprintf() in ar_close(). ok millert@
Revision 1.40 / (download) - annotate - [select for diffs], Sun Jan 19 10:22:57 2014 UTC (10 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)
Forget to remove the prototype for set_lids() after removing the definition
Revision 1.39 / (download) - annotate - [select for diffs], Thu Jan 9 03:12:25 2014 UTC (10 years, 5 months ago) by guenther
Branch: MAIN
Changes since 1.38: +1 -2 lines
Diff to previous 1.38 (colored)
Update pax -v format to match "ls -l": display the year for dates in the future and include a space between the major and minor numbers for devices. Eliminate bogus handling of LC_TIME environment variable. Make strftime() format selection understandable by gcc -Wformat=2. ok millert@
Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 8 04:48:29 2014 UTC (10 years, 5 months ago) by guenther
Branch: MAIN
Changes since 1.37: +2 -3 lines
Diff to previous 1.37 (colored)
Delete a bogus extern declaration and move around a couple others
Revision 1.37 / (download) - annotate - [select for diffs], Wed Jan 8 04:41:40 2014 UTC (10 years, 5 months ago) by guenther
Branch: MAIN
Changes since 1.36: +7 -4 lines
Diff to previous 1.36 (colored)
Mark some functions as printf-like and fix a bogus format string ok fgsch@
Revision 1.36 / (download) - annotate - [select for diffs], Wed Jul 3 04:08:29 2013 UTC (10 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.35: +1 -3 lines
Diff to previous 1.35 (colored)
cpio and ustar formats store times in octal fields that are 11 characters wide, so they support up to 33bits. Take advantage of the extra bits by no longer forcing them into 32bit ints before the time_t conversion. This gets us another 204 years of range once time_t changes type ok deraadt@ tedu@
Revision 1.35 / (download) - annotate - [select for diffs], Tue Dec 4 02:27:00 2012 UTC (11 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.34: +1 -3 lines
Diff to previous 1.34 (colored)
remove some unnecessary sys/cdefs.h inclusions
Revision 1.34 / (download) - annotate - [select for diffs], Thu Dec 2 04:08:27 2010 UTC (13 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)
a -N option for tar that uses numeric only IDs, useful for cross system tar file manipulation. with advice from guenther and jmc.
Revision 1.33 / (download) - annotate - [select for diffs], Tue May 6 06:54:28 2008 UTC (16 years, 1 month ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)
when pax is running in -u mode, and no files are beeing updated because not one changed, we should not exit with an error but zero to indicate success (matches solaris behaviour). need to track wether files were skipped because of the -u checks for that and take that into account later when taking the exit code decision. ok theo, comments from otto and miod
Revision 1.32 / (download) - annotate - [select for diffs], Fri Nov 17 08:38:04 2006 UTC (17 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)
Fix extracting and setting permissions for tar archives when (multiple) -C options are present and/or (multiple) file selections args are used. Based on a diff in NetBSD PR 22995. Tested by ckuethe@ and jaredy@; ok jaredy@
Revision 1.31 / (download) - annotate - [select for diffs], Thu Apr 28 06:58:07 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)
Use a special crafted string copy function to copy data from ustar headers to the generic pax structs. ustar is "funny" since some fields are not always NUL terminated. Old-style tar headers and ustar creation remains to be done. ok millert@ beck@
Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 25 19:39:52 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored)
Use the various f* functions to set owner, mode and times, instead of operating on the path name. Avoids some races. ok deraadt@ cloder@ millert@
Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 29 16:23:22 2004 UTC (19 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)
Build the table of created directories in-memory, instead of using a tmp file. Makes it possible to unpack an archive without using /tmp, while memory usage is still within every reasonable limit. "love it" deraadt@ ok millert@ jaredy@
Revision 1.28 / (download) - annotate - [select for diffs], Tue Mar 30 16:14:22 2004 UTC (20 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)
Add support for expanding GNU long links from NetBSD. I've had this in my tree for ages but didn't have a proper test case. Thanks to otto@ for providing one.
Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 26 00:10:17 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)
protos. this requires changing the api for the *trail() functions a bit
Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 13 17:51:14 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)
Add a -0 flag to make pax use a NUL instead of a newline as the pathname separator. Works in list mode as well as read/copy mode. Based on a patch from David Leonard; closes PR 3310
Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 2 23:32:08 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.24: +2 -6 lines
Diff to previous 1.24 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.24 / (download) - annotate - [select for diffs], Fri Oct 18 15:38:11 2002 UTC (21 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)
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.
Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 16 19:20:02 2002 UTC (21 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.22: +9 -9 lines
Diff to previous 1.22 (colored)
sprinkle const; mostly from NetBSD
Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 16 17:43:10 2002 UTC (21 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.21: +57 -57 lines
Diff to previous 1.21 (colored)
kill register
Revision 1.21 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:07 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_2,
OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.20: +143 -143 lines
Diff to previous 1.20 (colored)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Revision 1.20 / (download) - annotate - [select for diffs], Tue Jul 17 18:19:49 2001 UTC (22 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)
Add a safe_print() function that uses vis(3) if output is a tty. Uses the vis C-style mode which is consistent with what GNU tar does (though GNU tar does vis(3) regardless of whether output is a tty). It may make sense to add a flag to force vis(3)ification like ls does but I have not done that here as I'm reticent to add more flags.
Revision 1.19 / (download) - annotate - [select for diffs], Sat May 26 00:32:21 2001 UTC (23 years ago) by millert
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
Get rid of NET2_FTS and NET2_REGEX #ifdefs since they are useless. Change NET2_STAT into LONG_OFF_T for portability to systems with a 32bit off_t.
Revision 1.18 / (download) - annotate - [select for diffs], Wed May 16 03:04:56 2001 UTC (23 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)
use proper str*cpy functions instead of home grown one, spaces; millert@ ok
Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 7 19:04:14 2001 UTC (23 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)
Honor TMPDIR environment variable and document the fact.
Revision 1.16 / (download) - annotate - [select for diffs], Fri Jun 9 16:37:54 2000 UTC (24 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE,
OPENBSD_2_8
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored)
Some minor cleanup, ok'd millert@ - remove zflag variable, since gzip_program is enough to know what's going on. - fix ar_gzip call to not depend on global variables. Avoid bogus act checks, avoid calling if fd == -1. - do gzip check for append as early as possible. - remove old K&R prototype when updating.
Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 20 02:22:21 1998 UTC (25 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6,
OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)
When invoked as tar, print verbose output to stdout, not stderr. If in list mode or in create mode where create output is to stdout print to stderr
Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 24 23:19:18 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE,
OPENBSD_2_3,
OPENBSD_2_2_BASE,
OPENBSD_2_2
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)
Stash fd of cwd instead of using getcwd() to stash path. This works in cases where the parent dir is not readable.
Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 4 00:15:15 1997 UTC (27 years ago) by millert
Branch: MAIN
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored)
Fix usage of l_strncpy() (noticed by Theo) and make l_strncpy() pad with NULL's like strncpy(3). This eliminates the need for zf_strncpy(); ocurrences of zf_strncpy() have been changed to l_strncpy().
Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 5 22:36:12 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)
Strip leading '/' of pathnames (only in tar mode). -S option turns this off like GNU tar.
Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 2 09:46:43 1997 UTC (27 years, 3 months ago) by tholo
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)
More complete cpio(1) emulation
Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 27 23:32:57 1997 UTC (27 years, 3 months ago) by michaels
Branch: MAIN
Changes since 1.9: +1 -0 lines
Diff to previous 1.9 (colored)
fix pr system/124, reported by Janjaap van Velthooven (janjaap@stack.nl).
Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 26 10:33:22 1997 UTC (27 years, 4 months ago) by downsj
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)
Support lchown().
Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 24 19:41:20 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)
Support multiple -v options like GNU tar (> 1 -v means do ls-like output).
Revision 1.7 / (download) - annotate - [select for diffs], Mon Dec 9 12:00:14 1996 UTC (27 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)
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.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 27 06:45:10 1996 UTC (27 years, 7 months ago) by downsj
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)
Initial cut -C support in paxtar. Exceeds GNU tar by quite a bit. General pax still seems to work ok.
Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 22 20:09:53 1996 UTC (27 years, 8 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)
Use zopen for compress-style compressed archives Use libz for gzip-style compressed archives
Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 23 14:20:33 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +1 -0 lines
Diff to previous 1.3 (colored)
update rcsid
Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 11 06:41:49 1996 UTC (28 years ago) by tholo
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)
Correct compile warnings Rename warn() to paxwarn() so <err.h> can be included Remove #include <ctype.h> when not needed; from FreeBSD
Revision 1.2 / (download) - annotate - [select for diffs], Fri Apr 19 02:24:55 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)
from mrg; impliment -z (gzip) in pax and tar, and -Z (compress) in tar
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:37:17 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:37:17 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN
Initial revision