# HG changeset patch # User masneyb # Date 1172530437 0 # Node ID c010094bd60b672f6fcc304b898e37b3c80e2caa # Parent 18850d856cf674923ffd92d4ba8a6c23f900b361 2007-2-26 Brian Masney * lib/rfc959.c (rfc959_read_response) - log any commands that return a 4xx or 5xx with the gftp_logging_error priority. (closes #411777) diff -r 18850d856cf6 -r c010094bd60b ChangeLog --- a/ChangeLog Sun Feb 25 20:49:57 2007 +0000 +++ b/ChangeLog Mon Feb 26 22:53:57 2007 +0000 @@ -1,3 +1,7 @@ +2007-2-26 Brian Masney + * lib/rfc959.c (rfc959_read_response) - log any commands that return + a 4xx or 5xx with the gftp_logging_error priority. (closes #411777) + 2007-2-14 Brian Masney * lib/gftp.h src/gtk/gtkui.c src/uicommon/gftpui.c - added refreshing field to the gftp_request structure. If this is set in diff -r 18850d856cf6 -r c010094bd60b lib/rfc959.c --- a/lib/rfc959.c Sun Feb 25 20:49:57 2007 +0000 +++ b/lib/rfc959.c Mon Feb 26 22:53:57 2007 +0000 @@ -122,8 +122,13 @@ strncpy (code, tempstr, 3); code[3] = ' '; } - request->logging_function (gftp_logging_recv, request, - "%s\n", tempstr); + + if (*tempstr == '4' || *tempstr == '5') + request->logging_function (gftp_logging_error, request, + "%s\n", tempstr); + else + request->logging_function (gftp_logging_recv, request, + "%s\n", tempstr); } while (strncmp (code, tempstr, 4) != 0);