From bfbe10c70dedb42cd33eeb52cac31dabaa173b34 Mon Sep 17 00:00:00 2001 From: millert Date: Sun, 6 Apr 1997 06:26:23 +0000 Subject: [PATCH] Remove old -P flag since it doesn't do anything and make -P mean "preserve leading /" like GNU tar (no longer use -S for this). --- bin/pax/options.c | 12 +++--------- bin/pax/tar.1 | 6 ++---- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/bin/pax/options.c b/bin/pax/options.c index ec4324c6da4..ab8fdf1a9ab 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.21 1997/04/05 22:51:53 millert Exp $ */ +/* $OpenBSD: options.c,v 1.22 1997/04/06 06:26:23 millert Exp $ */ /* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: options.c,v 1.21 1997/04/05 22:51:53 millert Exp $"; +static char rcsid[] = "$OpenBSD: options.c,v 1.22 1997/04/06 06:26:23 millert Exp $"; #endif #endif /* not lint */ @@ -609,7 +609,7 @@ tar_options(argc, argv) * process option flags */ while ((c = getoldopt(argc, argv, - "b:cef:hmopruts:vwxzBC:HLPSXZ014578")) + "b:cef:hmopruts:vwxzBC:HLPXZ014578")) != EOF) { switch(c) { case 'b': @@ -743,12 +743,6 @@ tar_options(argc, argv) Lflag = 1; break; case 'P': - /* - * do not follow symlinks - */ - Lflag = 0; - break; - case 'S': /* * do not remove leading '/' from pathnames */ diff --git a/bin/pax/tar.1 b/bin/pax/tar.1 index d00827d2322..f350da1d4f2 100644 --- a/bin/pax/tar.1 +++ b/bin/pax/tar.1 @@ -27,7 +27,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.9 1997/04/06 06:11:16 millert Exp $ +.\" $OpenBSD: tar.1,v 1.10 1997/04/06 06:26:25 millert Exp $ .\" .Dd June 11, 1996 .Dt TAR 1 @@ -37,7 +37,7 @@ .Nd tape archiver .Sh SYNOPSIS .Nm -.No [-]{crtux}[befhmopvwzHLPSXZ014578] +.No [-]{crtux}[befhmopvwzHLPXZ014578] .Op Ar archive .Op Ar blocksize .\" XXX how to do this right? @@ -173,8 +173,6 @@ Follow symlinks given on command line only. .It Fl L Follow all symlinks. .It Fl P -Do not follow any symlinks. -.It Fl S Do not strip leading slashes (``/'') from pathnames. The default is to strip leading slashes. .It Fl X -- 2.20.1