diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-26 04:40:28 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-26 04:40:28 +0000 |
commit | 788eaca73b7a064bbe8a79232f24c8be85cff3f4 (patch) | |
tree | f1101281315fef3b709d26fdec472f61f634c496 | |
parent | b4827caf31609c1d339fab2e6912017ceba782cd (diff) |
-E NONE has *never* worked; it was always -E none. It's a dubious option
value that merits a warning in the manpage and using 2 billion will get
you practically the same effect, so delete the -E none support
-rw-r--r-- | bin/pax/options.c | 16 | ||||
-rw-r--r-- | bin/pax/pax.1 | 18 |
2 files changed, 8 insertions, 26 deletions
diff --git a/bin/pax/options.c b/bin/pax/options.c index 98ceea9a02d..ac25e619060 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.99 2016/08/26 04:33:11 guenther Exp $ */ +/* $OpenBSD: options.c,v 1.100 2016/08/26 04:40:27 guenther Exp $ */ /* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */ /*- @@ -527,17 +527,13 @@ pax_options(int argc, char **argv) /* * non-standard limit on read faults * 0 indicates stop after first error, values - * indicate a limit, "NONE" try forever + * indicate a limit */ flg |= CEF; - if (strcmp("none", optarg) == 0) - maxflt = -1; - else { - maxflt = strtonum(optarg, 0, INT_MAX, &errstr); - if (errstr) { - paxwarn(1, "Error count value: %s", errstr); - pax_usage(); - } + maxflt = strtonum(optarg, 0, INT_MAX, &errstr); + if (errstr) { + paxwarn(1, "Error count value: %s", errstr); + pax_usage(); } break; case 'G': diff --git a/bin/pax/pax.1 b/bin/pax/pax.1 index afc4a88ca13..14242563ee2 100644 --- a/bin/pax/pax.1 +++ b/bin/pax/pax.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pax.1,v 1.72 2016/08/16 18:41:06 schwarze Exp $ +.\" $OpenBSD: pax.1,v 1.73 2016/08/26 04:40:27 guenther Exp $ .\" $NetBSD: pax.1,v 1.3 1995/03/21 09:07:37 cgd Exp $ .\" .\" Copyright (c) 1992 Keith Muller. @@ -34,7 +34,7 @@ .\" .\" @(#)pax.1 8.4 (Berkeley) 4/18/94 .\" -.Dd $Mdocdate: August 16 2016 $ +.Dd $Mdocdate: August 26 2016 $ .Dt PAX 1 .Os .Sh NAME @@ -358,23 +358,9 @@ A of 0 will cause .Nm to stop operation after the first read error is detected on an archive volume. -A -.Ar limit -of -.Li NONE -will cause -.Nm -to attempt to recover from read errors forever. The default .Ar limit is a small positive number of retries. -.Pp -.Sy Warning : -Using this option with -.Li NONE -should be used with extreme caution as -.Nm -may get stuck in an infinite loop on a very badly flawed archive. .It Fl f Ar archive Specify .Ar archive |