patch-cf-agent_verify_files_utils_c 667 B

12345678910111213
  1. $OpenBSD: patch-cf-agent_verify_files_utils_c,v 1.1 2016/01/22 11:38:23 sthen Exp $
  2. --- cf-agent/verify_files_utils.c.orig Wed Jan 20 00:37:39 2016
  3. +++ cf-agent/verify_files_utils.c Wed Jan 20 00:37:57 2016
  4. @@ -1384,7 +1384,7 @@ bool CopyRegularFile(EvalContext *ctx, const char *sou
  5. if (attr.copy.backup == BACKUP_OPTION_TIMESTAMP)
  6. {
  7. stampnow = time((time_t *) NULL);
  8. - snprintf(stamp, CF_BUFSIZE - 1, "_%lu_%s", CFSTARTTIME, CanonifyName(ctime(&stampnow)));
  9. + snprintf(stamp, CF_BUFSIZE - 1, "_%lld_%s", CFSTARTTIME, CanonifyName(ctime(&stampnow)));
  10. if (!JoinSuffix(backup, stamp))
  11. {