X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fincremen.c;h=69805a7f779dc72710865febf85182abc4972636;hb=f319c5575b7b98776a778e00b009f17e9814a71c;hp=c671eef14e737061dd5eaa7556839b40db0ec812;hpb=87bd7f5d1cf1b623d1c4e8e9e8e48ba2fe182a1e;p=chaz%2Ftar diff --git a/src/incremen.c b/src/incremen.c index c671eef..69805a7 100644 --- a/src/incremen.c +++ b/src/incremen.c @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., - 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include @@ -354,6 +354,8 @@ read_directory_file (void) _("Time stamp out of range"))); else { + /* FIXME: This should also input nanoseconds, but that will be a + change in file format. */ newer_mtime_option.tv_sec = t; newer_mtime_option.tv_nsec = 0; } @@ -444,7 +446,9 @@ write_directory_file (void) if (sys_truncate (fileno (fp)) != 0) truncate_error (listed_incremental_option); - fprintf (fp, "%lu\n", (unsigned long) start_time); + /* FIXME: This should also output nanoseconds, but that will be a + change in file format. */ + fprintf (fp, "%lu\n", (unsigned long int) start_time.tv_sec); if (! ferror (fp) && directory_table) hash_do_for_each (directory_table, write_directory_file_entry, fp); if (ferror (fp))