git: libarchive - Ensure futimens() operation is consistent with utimes()

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 6 11:21:39 PDT 2015


commit 82bc37c32f55ca1cee22678a8ffe89cd3bcf2754
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jun 6 11:20:21 2015 -0700

    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().

Summary of changes:
 .../libarchive/libarchive/archive_read_disk_posix.c    | 18 ++++++++++++++----
 .../libarchive/libarchive/archive_write_disk_posix.c   | 18 ++++++++++++++----
 2 files changed, 28 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/82bc37c32f55ca1cee22678a8ffe89cd3bcf2754


-- 
DragonFly BSD source repository



More information about the Commits mailing list