Date: Tue, 24 Jun 2008 23:52:40 -0700 From: Tim Kientzle <kientzle@freebsd.org> To: gavin@freebsd.org Cc: freebsd-bugs@freebsd.org Subject: Re: bin/124915: bsdtar(1) creates files with bogus access times Message-ID: <4861EB38.6080807@freebsd.org> In-Reply-To: <200806240708.m5O78Kxn088155@freefall.freebsd.org> References: <200806240708.m5O78Kxn088155@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Ouch. Yep, plain tar format doesn't store an atime, so the atime value for the entry gets extracted as zero and the archive_extract() routine ends up restoring the file atime as zero. There's a couple of ways this might be fixed. I'm not sure offhand whether it's better to explicitly set the atime to match mtime or to the current time.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4861EB38.6080807>