Explorar o código

Fix utimbuf initialization in storagedir/cleaning test

Nick Mathewson %!s(int64=8) %!d(string=hai) anos
pai
achega
04f1ddaa2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/test/test_storagedir.c

+ 1 - 1
src/test/test_storagedir.c

@@ -220,7 +220,7 @@ test_storagedir_cleaning(void *arg)
   time_t now = time(NULL);
   struct utimbuf ub;
   ub.actime = now;
-  ub.modtime -= 1000;
+  ub.modtime = now - 1000;
   for (i = 0; i < 8; ++i) {
     char *f = NULL;
     tor_asprintf(&f, "%s/%s", dirname, fns[i]);