From 0c0cdc3b20ad16fd553f7b4c396d9674a75cbf12 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 28 Jul 2009 19:38:28 +0200 Subject: [PATCH] freshen to match upstream CVS head as of today --- pax.1 | 8 ++++---- tar.1 | 12 +++++++----- tty_subs.c | 12 ++++-------- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/pax.1 b/pax.1 index d9ef442..63b7eb6 100644 --- a/pax.1 +++ b/pax.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pax.1,v 1.54 2008/06/11 07:42:50 jmc Exp $ +.\" $OpenBSD: pax.1,v 1.56 2009/02/08 17:33:01 jmc 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: June 11 2008 $ +.Dd $Mdocdate: February 8 2009 $ .Dt PAX 1 .Os .Sh NAME @@ -1143,11 +1143,11 @@ completes it will exit with a non-zero exit status. The .Nm utility is compliant with the -.St -p1003.1-2004 +.St -p1003.1-2008 specification. .Pp The flags -.Op Fl 0BDEGHjLOPTUYZz , +.Op Fl 0BDEGjOPTUYZz , the archive formats .Em bcpio , .Em sv4cpio , diff --git a/tar.1 b/tar.1 index a411bc0..2165602 100644 --- a/tar.1 +++ b/tar.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tar.1,v 1.50 2008/06/11 00:49:08 pvalchev Exp $ +.\" $OpenBSD: tar.1,v 1.51 2008/12/27 13:35:34 sobrado Exp $ .\" .\" Copyright (c) 1996 SigmaSoft, Th. Lockert .\" All rights reserved. @@ -23,9 +23,9 @@ .\" (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.50 2008/06/11 00:49:08 pvalchev Exp $ +.\" $OpenBSD: tar.1,v 1.51 2008/12/27 13:35:34 sobrado Exp $ .\" -.Dd $Mdocdate: June 11 2008 $ +.Dd $Mdocdate: December 27 2008 $ .Dt TAR 1 .Os .Sh NAME @@ -40,17 +40,19 @@ .Op Ar blocking-factor | archive | replstr .Op Fl C Ar directory .Op Fl I Ar file -.Op Ar file ... +.Op Ar .Ek .Nm tar .No { Ns Fl crtux Ns } +.Bk -words .Op Fl 014578eHhjLmOoPpqvwXZz .Op Fl b Ar blocking-factor .Op Fl C Ar directory .Op Fl f Ar archive .Op Fl I Ar file .Op Fl s Ar replstr -.Op Ar file ... +.Op Ar +.Ek .Sh DESCRIPTION The .Nm diff --git a/tty_subs.c b/tty_subs.c index a7ba68a..6b6e134 100644 --- a/tty_subs.c +++ b/tty_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_subs.c,v 1.12 2003/06/02 23:32:09 millert Exp $ */ +/* $OpenBSD: tty_subs.c,v 1.13 2009/06/01 13:02:46 ray Exp $ */ /* $NetBSD: tty_subs.c,v 1.5 1995/03/21 09:07:52 cgd Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static const char sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94"; #else -static const char rcsid[] = "$OpenBSD: tty_subs.c,v 1.12 2003/06/02 23:32:09 millert Exp $"; +static const char rcsid[] = "$OpenBSD: tty_subs.c,v 1.13 2009/06/01 13:02:46 ray Exp $"; #endif #endif /* not lint */ @@ -123,17 +123,13 @@ tty_prnt(const char *fmt, ...) int tty_read(char *str, int len) { - char *pt; - - if ((--len <= 0) || (ttyinf == NULL) || (fgets(str,len,ttyinf) == NULL)) + if (ttyinf == NULL || fgets(str, len, ttyinf) == NULL) return(-1); - *(str + len) = '\0'; /* * strip off that trailing newline */ - if ((pt = strchr(str, '\n')) != NULL) - *pt = '\0'; + str[strcspn(str, "\n")] = '\0'; return(0); } -- 2.30.2