https://bugs.kde.org/show_bug.cgi?id=397354

Mark Wielaard <m...@klomp.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Mark Wielaard <m...@klomp.org> ---
commit 790f5f3018f807153339e441e7aea1414f4b5c8d
Author: Mark Wielaard <m...@klomp.org>
Date:   Mon Sep 3 11:54:38 2018 +0200

    Bug 397354 utimensat should ignore tv_sec if tv_nsec is UTIME_NOW/OMIT.

    When code uses utimensat with UTIME_NOW or UTIME_OMIT valgrind memcheck
    would generate a warning. But as the utimensat manpage says:

      If the tv_nsec field of one of the timespec structures has the  special
      value  UTIME_NOW,  then  the corresponding file timestamp is set to the
      current time.  If the tv_nsec field of one of the  timespec  structures
      has the special value UTIME_OMIT, then the corresponding file timestamp
      is left unchanged.  In both of these cases, the  value  of  the  correā€
      sponding tv_sec field is ignored.

    So ignore the timespec tv_sec when tv_nsec is set to UTIME_NOW or
    UTIME_OMIT.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to