diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-05-07 00:43:07 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-05-07 00:43:07 +0000 |
commit | e739fe966f6d5e875202a6eefbf1b39e5d73128c (patch) | |
tree | 370271eaa236e464a8cdcbfdc7919c26474b6431 /distrib | |
parent | 733042773a57370053ff83c859d17454cfc876c8 (diff) |
Use -h option in tar invocations so that upgrades respect links.
Recover two of the three extra characters by deleting unneeded '-'s in
the tar invocations used in tape installs.
Problem noted and solution suggested by millert@.
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sub | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 6138bd4839a..4ef06d5907e 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.297 2003/04/30 23:56:30 krw Exp $ +# $OpenBSD: install.sub,v 1.298 2003/05/07 00:43:06 krw Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2003 Todd Miller, Theo de Raadt, Ken Westerback @@ -881,7 +881,7 @@ __EOT isin $_f $_get_sets || continue echo "Getting $_f ..." case $_f in - *.tgz) ftp $_ftp_active -o - -V -m "$_src/$_f" | tar zxpf - -C /mnt + *.tgz) ftp $_ftp_active -o - -V -m "$_src/$_f" | tar zxphf - -C /mnt ;; *) ftp $_ftp_active -o "/mnt/$_f" -V -m "$_src/$_f" ;; @@ -1364,9 +1364,9 @@ __EOT while [ -z "$resp" ]; do ask "Which way is it?" 1 case $resp in - 1) _xcmd="tar -zxvpf -" + 1) _xcmd="tar zxvphf -" ;; - 2) _xcmd="tar -xvpf -" + 2) _xcmd="tar xvphf -" ;; *) echo "Invalid response: $resp." # force loop to repeat |