From nobody@FreeBSD.org  Mon Oct 30 16:22:08 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D44AA16A403
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Oct 2006 16:22:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C1BE143DD6
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Oct 2006 16:21:34 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9UGLY0h074414
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Oct 2006 16:21:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9UGLY8V074404;
	Mon, 30 Oct 2006 16:21:34 GMT
	(envelope-from nobody)
Message-Id: <200610301621.k9UGLY8V074404@www.freebsd.org>
Date: Mon, 30 Oct 2006 16:21:34 GMT
From: Herve Boulouis<amon@sockar.homeip.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bug in some date handling of bsdtar
X-Send-Pr-Version: www-3.0

>Number:         104934
>Category:       bin
>Synopsis:       bug in some date handling of bsdtar
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 30 16:30:23 GMT 2006
>Closed-Date:    Fri Nov 10 16:10:12 GMT 2006
>Last-Modified:  Fri Nov 10 16:10:12 GMT 2006
>Originator:     Herve Boulouis
>Release:        Freebsd 6-STABLE
>Organization:
Nerim
>Environment:
FreeBSD marine.noc.nerim.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sun Sep 10 23:41:48 CEST 2006 root@marine.noc.nerim.net:/usr/obj/usr/src/sys/GENERIC-NERIM  i386
>Description:
bsdtar does not handle some date forms correctly :

marine:/usr/src/usr.bin/tar# date
Mon Oct 30 17:16:08 CET 2006
marine:/usr/src/usr.bin/tar# tar -cvpf /opt/var.tar --newer-mtime '2006-10-29 17:16:00' /var

-> correctly saves the files modified since yesterday

marine:/usr/src/usr.bin/tar# tar -cvpf /opt/var.tar --newer-mtime '1 day ago' /var

-> saves nothing 

marine:/usr/src/usr.bin/tar# tar -cvpf /opt/var.tar --newer-mtime 'yesterday' /var

-> saves nothing 

The form with '1 day ago' worked ok with gnu tar before it was replaced by bsdtar.

>How-To-Repeat:
see full description
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->kientzle 
Responsible-Changed-By: ru 
Responsible-Changed-When: Mon Oct 30 16:38:51 UTC 2006 
Responsible-Changed-Why:  
Pass over to the author and maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104934 
State-Changed-From-To: open->closed 
State-Changed-By: kientzle 
State-Changed-When: Fri Nov 10 16:09:41 UTC 2006 
State-Changed-Why:  
Fixed in both -CURRENT and 6-STABLE. 


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