bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnu tar w/ --listed-incremental --files-from


From: Miek Gieben
Subject: Re: gnu tar w/ --listed-incremental --files-from
Date: Sun, 26 Jan 2003 17:33:20 +0100
User-agent: Vim/Mutt/Linux

[On 22 Jan, @15:26, Stepan wrote in "Re: gnu tar w/ --listed-increm ..."]
> OK, I'd say this _is_ a bug.

i believe the following patch fixes the problem:

grtz Miek


--- tar-orig-1.13/src/create.c  Wed Jul  7 07:27:04 1999
+++ tar-1.13/src/create.c       Sun Jan 26 17:21:43 2003
@@ -855,7 +855,7 @@
   /* See if we only want new files, and check if this one is too old to
      put in the archive.  */
 
-  if (!incremental_option && !S_ISDIR (current_stat.st_mode)
+  if (incremental_option && !S_ISDIR (current_stat.st_mode)
       && current_stat.st_mtime < newer_mtime_option
       && (!after_date_option || current_stat.st_ctime < newer_ctime_option))
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]