From cperon@staff.seccuris.com  Tue Dec 17 10:47:23 2002
Return-Path: <cperon@staff.seccuris.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8B92E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Dec 2002 10:47:23 -0800 (PST)
Received: from staff.seccuris.com (staff.seccuris.com [204.112.0.40])
	by mx1.FreeBSD.org (Postfix) with SMTP id 787B443EDE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Dec 2002 10:47:22 -0800 (PST)
	(envelope-from cperon@staff.seccuris.com)
Received: (qmail 20975 invoked by uid 1006); 17 Dec 2002 18:54:21 -0000
Message-Id: <20021217185421.20974.qmail@staff.seccuris.com>
Date: 17 Dec 2002 18:54:21 -0000
From: Christian S.J.Peron <maneo@bsdpro.com>
Reply-To: Christian S.J.Peron <maneo@bsdpro.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch]: man page: strptime implementation clarification
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46331
>Category:       bin
>Synopsis:       [patch]: man page: strptime implementation clarification
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    tjr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 17 10:50:02 PST 2002
>Closed-Date:    Sat Jan 04 02:29:51 PST 2003
>Last-Modified:  Sat Jan 04 02:29:51 PST 2003
>Originator:     Christian S.J. Peron
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD h24-82-193-81 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #1: Fri Dec  6 00:00:31 CST 2002     modulus@h24-82-193-81:/usr/src/sys/compile/opcode  i386


	
>Description:
The strptime man page does not specify how absent format specifiers are
handled when the tm structure is packed.
>How-To-Repeat:
	
>Fix:

--- strptime.3	Tue Dec 17 10:00:01 2002
+++ strptime.3.mod	Tue Dec 17 12:19:21 2002
@@ -67,6 +67,17 @@
 are now interpreted as beginning at 1969 per POSIX requirements.
 Years 69-00 are interpreted in the 20th century (1969-2000), years
 01-68 in the 21st century (2001-2068).
+.Pp
+If a format specifier is omitted in the
+.Fa format
+string, its arbitrary
+field in the
+.Fa timeptr
+structure will be left untouched. If time relative to today is
+desired, initialize the
+.Fa timeptr
+structure with today's date before passing it to
+.Fn strptime .
 .Sh RETURN VALUES
 Upon successful completion,
 .Fn strptime
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: tjr 
State-Changed-When: Tue Dec 17 21:01:39 PST 2002 
State-Changed-Why:  
Fixed, thanks. Change will be MFC'd after 2 weeks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46331 
Responsible-Changed-From-To: gnats-admin->tjr 
Responsible-Changed-By: tjr 
Responsible-Changed-When: Tue Dec 17 21:02:28 PST 2002 
Responsible-Changed-Why:  
I will handle the MFC'ing of this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46331 
State-Changed-From-To: patched->closed 
State-Changed-By: tjr 
State-Changed-When: Sat Jan 4 02:29:15 PST 2003 
State-Changed-Why:  
Change has been MFC'd. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46331 
>Unformatted:
