[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Check nano seconds (nsec) to accurate; extract of sym-link
From: |
Paul Eggert |
Subject: |
Re: [Bug-tar] Check nano seconds (nsec) to accurate; extract of sym-links fails |
Date: |
Thu, 20 Jul 2006 00:51:12 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
"Raphael Bossek" <address@hidden> writes:
> I invested some time to identify the problem because I thouhght is a problem
> of me. Now here is my patch to fix TAR:
>
> --- lib/timespec.h.orig 2006-07-19 16:01:51.000000000 +0200
> +++ lib/timespec.h 2006-07-20 08:22:57.000000000 +0200
> @@ -47,7 +47,7 @@
> {
> return (a.tv_sec < b.tv_sec ? -1
> : a.tv_sec > b.tv_sec ? 1
> - : a.tv_nsec - b.tv_nsec);
> + : 0);
> }
>
> # if ! HAVE_DECL_NANOSLEEP
That sounds too strong. Sometimes 'tar' should ignore the
nanoseconds, and sometimes not. That is why CVS tar has both a
timespec_cmp function and a tar_timespec_cmp function, for example.
In order to debug your problem we'll need more information.
Is there a simple way to reproduce it?