Index: /branches/rel_apv_10_7/usr/click/lib/libdebug/debug_ftp.c
===================================================================
--- /branches/rel_apv_10_7/usr/click/lib/libdebug/debug_ftp.c	(revision 38106)
+++ /branches/rel_apv_10_7/usr/click/lib/libdebug/debug_ftp.c	(working copy)
@@ -96,11 +96,15 @@
 	bzero(localfile, DEBUG_FILE_LEN);
 
 	if(strncmp(filename,"sys_debug", strlen("sys_debug")) == 0) {
-	    snprintf(debug_file, DEBUG_FILE_LEN, "%s_%s.tar.gz", filename, timestamp);
 	    debug_ptr = get_local_debug_file();
 	    if (debug_ptr) 
 		strcpy(localdebugfile, debug_ptr);
 	    snprintf(localfile, sizeof(localfile), "%s%s", ARRAY_DEBUG_BASE, localdebugfile);
+            if(strncmp(filename,"sys_debug", strlen(filename)) > 0) {
+                snprintf(debug_file, DEBUG_FILE_LEN, "%s.tar.gz", filename);
+            } else {
+                snprintf(debug_file, DEBUG_FILE_LEN, "%s", localdebugfile);
+            }
 	} else {
 		snprintf(debug_file, DEBUG_FILE_LEN, "%s_%s.tar.gz.gpg", filename, timestamp);
 		snprintf(localfile, sizeof(localfile), "%s%s.tar.gz.gpg", ARRAY_DEBUG_BASE, filename);
