From 421f622bcc0a5ae3d6e63e19f35e355238436a9b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 23 Mar 2016 18:27:46 +0000 Subject: [PATCH] cgi-fcgi-interp: Implement stab_isnewer properly --- cprogs/cgi-fcgi-interp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cprogs/cgi-fcgi-interp.c b/cprogs/cgi-fcgi-interp.c index 1d88f50..4403586 100644 --- a/cprogs/cgi-fcgi-interp.c +++ b/cprogs/cgi-fcgi-interp.c @@ -308,7 +308,11 @@ static void find_socket_path(void) { #endif /*timespeccmp*/ static bool stab_isnewer(const struct stat *a, const struct stat *b) { - return 0; +#ifdef st_mtime + return timespeccmp(&a->st_mtim, &b->st_mtim, >); +#else + return a->st_mtime > &b->st_mtime; +#endif } static bool check_garbage(void) { -- 2.30.2