libarchive - Ensure futimens() operation is consistent with utimes()
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 6 Jun 2015 18:20:21 +0000 (11:20 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 6 Jun 2015 18:20:21 +0000 (11:20 -0700)
commit82bc37c32f55ca1cee22678a8ffe89cd3bcf2754
treebf54c9ed8dd4329ddcf5645cefd26f5eb0c4604b
parent27bd2f35d68af84b9ed35d81814062c34046b646
libarchive - Ensure futimens() operation is consistent with utimes()

* utimes() allows tv_sec to be -1 to indicate that the element should
  not be updated.

* Handle this case for when futimens() is used by setting tv_nsec to
  UTIME_OMIT.

* This way operation is consistent whether we use futimens() or use
  utimes().
contrib/libarchive/libarchive/archive_read_disk_posix.c
contrib/libarchive/libarchive/archive_write_disk_posix.c