summaryrefslogtreecommitdiff
path: root/bin/pax/tar.1
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-10-25 16:59:04 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-10-25 16:59:04 +0000
commit18c63dec1c4a84e38d4d642f7150d1a4dc3768e8 (patch)
tree16d3e8d8cf988412b4a4a070990644098ffb7494 /bin/pax/tar.1
parentbb1dad844e3f323cc1fd72c6cda30c387916153e (diff)
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.
Diffstat (limited to 'bin/pax/tar.1')
-rw-r--r--bin/pax/tar.110
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/pax/tar.1 b/bin/pax/tar.1
index e5c45997cbc..f81b49e4ce7 100644
--- a/bin/pax/tar.1
+++ b/bin/pax/tar.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tar.1,v 1.34 2001/05/11 20:02:16 mickey Exp $
+.\" $OpenBSD: tar.1,v 1.35 2001/10/25 16:59:03 niklas Exp $
.\"
.\" Copyright (c) 1996 SigmaSoft, Th. Lockert
.\" All rights reserved.
@@ -28,7 +28,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: tar.1,v 1.34 2001/05/11 20:02:16 mickey Exp $
+.\" $OpenBSD: tar.1,v 1.35 2001/10/25 16:59:03 niklas Exp $
.\"
.Dd February 7, 2001
.Dt TAR 1
@@ -108,6 +108,9 @@ Defaults to
.It Fl h
Follow symbolic links as if they were normal files
or directories.
+In extract mode this means that a directory entry in the archive
+will not overwrite an existing symbolic link, but rather what the
+link ultimately points to.
.It Fl m
Do not preserve modification time.
.It Fl O
@@ -202,6 +205,9 @@ from the directory.
Follow symlinks given on command line only.
.It Fl L
Follow all symlinks.
+In extract mode this means that a directory entry in the archive
+will not overwrite an existing symbolic link, but rather what the
+link ultimately points to.
.It Fl P
Do not strip leading slashes
.Pq Sq /