From 18c63dec1c4a84e38d4d642f7150d1a4dc3768e8 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Thu, 25 Oct 2001 16:59:04 +0000 Subject: 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. --- bin/pax/tar.1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin/pax/tar.1') 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 / -- cgit v1.2.3