[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH] Bug #28541

From: Jeff Stiff
Subject: [Bug-wget] [PATCH] Bug #28541
Date: Thu, 8 Apr 2010 14:13:09 +1000

G'Day list,

RE: bug #28541: Faulty time information in FTP directory listing

The below patch mostly addresses bug
#28541.(http://savannah.gnu.org/bugs/index.php?28541)  The change now
correctly reports the time for FTP listings with the exception of a
file with a timestamp of midnight (00:00).

Can you please advise if this patch is suitable for inclusion, or if
there are changes that need to be made prior to having it included.
If the patch is suitable, and you wish for me to continue, I will
continue investigating what needs to be done to correct wget for a
midnight timestamp as well.

ftp-ls.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

=== PATCH ====
diff -r 013c8e2f5997 src/ftp-ls.c
--- a/src/ftp-ls.c Thu Mar 04 22:09:31 2010 +0100
+++ b/src/ftp-ls.c Thu Apr 08 11:42:54 2010 +1000
@@ -1134,7 +1134,7 @@

          fprintf (fp, "%d %s %02d ", ptm->tm_year + 1900, months[ptm->tm_mon],
-          if (ptm->tm_hour)
+          if (ptm->tm_hour || ptm->tm_min)
            fprintf (fp, "%02d:%02d  ", ptm->tm_hour, ptm->tm_min);
            fprintf (fp, "       ");

=== PATCH ===


reply via email to

[Prev in Thread] Current Thread [Next in Thread]