Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2157

Local copy truncates millisecond part of modification time on both source and target

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
      None
    • Platform:
      Linux

      Description

      From customer report:

      copy with stealth option will alter source and target modificaiton time

      When doing a local copy using the stealth option, the milliseconds
      modification times are truncated on the source as well as the target.

      This exists in all CFE versions. In 3.6.5, in verify_files_utils.c:

      <pre>
      if (attr.copy.stealth)
      {
      #ifdef HAVE_UTIME_H
      timebuf.actime = sstat.st_atime;
      timebuf.modtime = sstat.st_mtime;
      utime(source, &timebuf);
      #endif
      }
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              a10040 Kristian Amlie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day, 5 hours
                  1d 5h
                  Remaining:
                  Not Specified
                  Logged:
                  Time Not Required
                  Not Specified