OpenBSD CVS

CVS log for src/bin/pax/file_subs.c


[BACK] Up to [local] / src / bin / pax

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.56 / (download) - annotate - [select for diffs], Sun Nov 26 16:04:17 2023 UTC (6 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.55: +11 -6 lines
Diff to previous 1.55 (colored)

mark functions as static when they're unused elsewhere, makes the
code slightly easier to understand.

okay and tweak kn@

Revision 1.55 / (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.54: +7 -5 lines
Diff to previous 1.54 (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.54 / (download) - annotate - [select for diffs], Fri Jun 28 13:34:59 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.53: +20 -20 lines
Diff to previous 1.53 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Jan 21 08:17:06 2017 UTC (7 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Aug 26 04:11:16 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.51: +1 -3 lines
Diff to previous 1.51 (colored)

Don't need <sys/time.h> or "options.h" here

Revision 1.51 / (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.50: +5 -5 lines
Diff to previous 1.50 (colored)

Instead of doing strcmp(argv0), track the invocation mode (pax/tar/cpio)
in a separate variable

ok deraadt@

Revision 1.50 / (download) - annotate - [select for diffs], Tue Aug 23 03:31:44 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.49: +2 -4 lines
Diff to previous 1.49 (colored)

Only try to set the times on a directory once, at the end, to avoid
duplication of warning messages

ok krw@

Revision 1.49 / (download) - annotate - [select for diffs], Sun Aug 14 18:30:33 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.48: +9 -9 lines
Diff to previous 1.48 (colored)

Remove many unnecessary casts.  Verified by comparing generated code on
both ILP32 and LP64.

ok millert@

Revision 1.48 / (download) - annotate - [select for diffs], Tue Feb 16 04:30:07 2016 UTC (8 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.47: +18 -4 lines
Diff to previous 1.47 (colored)

Ignore trailing slashes and skip over duplicate slashes in chk_path() to
avoid infinite loop when creating intermediate directories

Fix based on diff by Nicolas Bedos (nicolas.bedos (at) gmail.com)
ok millert@ ok and tweak zhuk@,

Revision 1.36.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.36: +117 -36 lines
Diff to previous 1.36 (colored) next main 1.37 (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.44.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.44: +117 -36 lines
Diff to previous 1.44 (colored) next main 1.45 (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.47 / (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.46: +24 -21 lines
Diff to previous 1.46 (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.46 / (download) - annotate - [select for diffs], Sun Mar 15 06:05:59 2015 UTC (9 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Using O_TRUNC with O_CREAT|O_EXCL is just confusing: fail if it exists,
but if you *did* succeed anyway, truncate it?

Revision 1.45 / (download) - annotate - [select for diffs], Mon Mar 9 04:23:29 2015 UTC (9 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.44: +117 -36 lines
Diff to previous 1.44 (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.44 / (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.43: +36 -117 lines
Diff to previous 1.43 (colored)

Recent changes haven't been completely stable, so revert for the 5.7 release

requested by deraadt@

Revision 1.43 / (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.42: +3 -1 lines
Diff to previous 1.42 (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.42 / (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.41: +31 -5 lines
Diff to previous 1.41 (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.41 / (download) - annotate - [select for diffs], Wed Feb 11 23:14:46 2015 UTC (9 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.40: +85 -32 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Thu Feb 5 22:32:20 2015 UTC (9 years, 3 months ago) by sthen
Branch: MAIN
Changes since 1.39: +31 -85 lines
Diff to previous 1.39 (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.39 / (download) - annotate - [select for diffs], Thu Feb 5 07:49:25 2015 UTC (9 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.38: +86 -32 lines
Diff to previous 1.38 (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.38 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:32 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

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)

Revision 1.37 / (download) - annotate - [select for diffs], Sun Nov 23 05:32:20 2014 UTC (9 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.36: +3 -4 lines
Diff to previous 1.36 (colored)

Use PATH_MAX from <limits.h> instead of MAXPATHLEN from <sys/param.h>
Eliminate a couple unneeded #includes

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jul 14 05:58:19 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.35: +1 -7 lines
Diff to previous 1.35 (colored)

Delete pointless 'return;' at end of function

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 14 02:55:09 2014 UTC (10 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.34: +7 -39 lines
Diff to previous 1.34 (colored)

No exception is made for symlinks in the spec, so use
fchmodat(AT_SYMLINK_NOFOLLOW) to set the mode on symlinks, pass
AT_SYMLINK_NOFOLLOW to utimensat(), and then let those be called
on symlinks by dropping the test that skipped them.  Eliminate
set_lids() by changing set_ids() to use fchownat(AT_SYMLINK_NOFOLLOW)
and delete a redundant conditional in each of set_ftime()/fset_ftime().

suggested by espie@
ok millert@

Revision 1.34 / (download) - annotate - [select for diffs], Tue Oct 8 03:10:36 2013 UTC (10 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

POSIX specifies that when the pax input file requests a hardlink
to a symlinks, that it be exactly that and not a hardlink to the
file pointed to by the symlink.  Use linkat() to get what we want.

ok deraadt@

Revision 1.33 / (download) - annotate - [select for diffs], Tue Apr 16 18:06:35 2013 UTC (11 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.32: +24 -30 lines
Diff to previous 1.32 (colored)

Use utimensat() and futimens() instead of utimes() and futimes().
This lets us use UTIME_OMIT instead of having to lstat() the file
when we want to preserve one of the times.  Remove casts to long
for tv_sec to prepare for upcoming time_t changes.  OK deraadt@

Revision 1.32 / (download) - annotate - [select for diffs], Tue Dec 22 12:08:30 2009 UTC (14 years, 5 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, 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, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

- tyop, spotted by Brad Tilley

Revision 1.31 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:22 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +1 -9 lines
Diff to previous 1.30 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.30 / (download) - annotate - [select for diffs], Wed Nov 9 19:59:06 2005 UTC (18 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

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@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Apr 25 19:39:52 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.28: +66 -8 lines
Diff to previous 1.28 (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.28 / (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.27: +5 -5 lines
Diff to previous 1.27 (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.27 / (download) - annotate - [select for diffs], Fri Apr 16 22:50:23 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

spacing

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 30 16:14:22 2004 UTC (20 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.25: +21 -9 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Mon Oct 20 06:22:27 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

typos from Jared Yanovich;

Revision 1.24 / (download) - annotate - [select for diffs], Wed Aug 6 21:08:05 2003 UTC (20 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Remove some double semicolons (hmm, do two semis equal a maxi?).
I've skipped the GNU stuff for now.  From Patrick Latifi.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 2 23:32:08 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.22: +3 -7 lines
Diff to previous 1.22 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Feb 3 09:06:43 2003 UTC (21 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

typos;
from netbsd(svs+pr@grep.ru)
suggested by deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 18 15:38:11 2002 UTC (21 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.20: +22 -10 lines
Diff to previous 1.20 (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.20 / (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.19: +3 -3 lines
Diff to previous 1.19 (colored)

sprinkle const; mostly from NetBSD

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 16 18:40:30 2002 UTC (21 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.18: +14 -14 lines
Diff to previous 1.18 (colored)

Fix comment typos; most from NetBSD and FreeBSD

Revision 1.18 / (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.17: +26 -27 lines
Diff to previous 1.17 (colored)

kill register

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 19 19:39:35 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.16: +2 -129 lines
Diff to previous 1.16 (colored)

We live in an ANSI C world.  Remove lots of gratuitous #ifdef __STDC__ cruft.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:07 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Thu Oct 25 16:59:03 2001 UTC (22 years, 7 months ago) by niklas
Branch: MAIN
Changes since 1.14: +48 -22 lines
Diff to previous 1.14 (colored)

Make -h and -L follow symlinks on extraction of directories.
This means that existing symbolic links won't get overwritten with a
directory, but instead the directory is created/updated with the privs
from the archive at the end of the symlink chain.  Great for unpacking
OpenBSD release tarballs, where you have linked away stuff due to lack of
space on a certain partition etc.

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 16 03:04:56 2001 UTC (23 years ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored)

use proper str*cpy functions instead of home grown one, spaces; millert@ ok

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 1 18:29:48 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, 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, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

i am bored enough to fix terminal space/tab uglies

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jul 25 18:58:29 1997 UTC (26 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.11: +19 -19 lines
Diff to previous 1.11 (colored)

#if __STDC__ --> #ifdef __STDC__

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 6 16:03:13 1997 UTC (27 years ago) by millert
Branch: MAIN
Changes since 1.10: +4 -6 lines
Diff to previous 1.10 (colored)

geteuid(2) can never fail.  What was I thinking?

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 6 05:56:04 1997 UTC (27 years ago) by millert
Branch: MAIN
Changes since 1.9: +8 -4 lines
Diff to previous 1.9 (colored)

POSIX says pax must complain about not being able to set permissions
but we don't have to do that in non-pax modes.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 4 04:56:26 1997 UTC (27 years ago) by millert
Branch: MAIN
Changes since 1.8: +16 -4 lines
Diff to previous 1.8 (colored)

Don't complain about not being able to set uid/gid in "tar -p"
(EPERM) unless the verbose flag is given or the user is root.
Noted by Magnus Holmberg <mho@stacken.kth.se>.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 9 01:59:00 1997 UTC (27 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

the the

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 5 05:53:22 1997 UTC (27 years, 3 months ago) by tholo
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Add missing #include

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 4 05:44:49 1997 UTC (27 years, 3 months ago) by tholo
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Do not post-process directories in cpio mode

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 2 09:46:45 1997 UTC (27 years, 3 months ago) by tholo
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

More complete cpio(1) emulation

Revision 1.4 / (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.3: +37 -5 lines
Diff to previous 1.3 (colored)

Support lchown().

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 23 14:20:33 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

update rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 11 06:41:50 1996 UTC (27 years, 11 months ago) by tholo
Branch: MAIN
Changes since 1.1: +7 -8 lines
Diff to previous 1.1 (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.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:37:17 1995 UTC (28 years, 7 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, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.