From 6d883b8341a39eecc664bb1863bb9bdca408dfd2 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 29 Dec 2006 08:42:56 +0000
Subject: [PATCH] Using new putfileixb() to update date dled field in ixb file
 after downloade.

---
 src/sbbs3/ftpsrvr.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/ftpsrvr.c b/src/sbbs3/ftpsrvr.c
index 6d2737f3f6..f343d7ed50 100644
--- a/src/sbbs3/ftpsrvr.c
+++ b/src/sbbs3/ftpsrvr.c
@@ -1506,6 +1506,9 @@ static void send_thread(void* arg)
 			if(getfileixb(&scfg,&f)==TRUE && getfiledat(&scfg,&f)==TRUE) {
 				f.timesdled++;
 				putfiledat(&scfg,&f);
+				f.datedled=time(NULL);
+				putfileixb(&scfg,&f);
+
 				lprintf(LOG_INFO,"%04d %s downloaded: %s (%lu times total)"
 					,xfer.ctrl_sock
 					,xfer.user->alias
@@ -1547,8 +1550,6 @@ static void send_thread(void* arg)
 					}
 				}
 			}
-			/* Need to update datedled in index */
-
 			if(!xfer.tmpfile && !xfer.delfile && !(scfg.dir[f.dir]->misc&DIR_NOSTAT))
 				download_stats(total);
 		}	
-- 
GitLab