[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix utimbuf initialization in storagedir/cleaning test



commit 04f1ddaa2a33194ba861cc38f89f16fd076c63a6
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Mar 29 09:10:35 2017 +0200

    Fix utimbuf initialization in storagedir/cleaning test
---
 src/test/test_storagedir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/test_storagedir.c b/src/test/test_storagedir.c
index 6678629..e7e3da6 100644
--- a/src/test/test_storagedir.c
+++ b/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]);

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits