- Don't print the '500 command not understood' reply for the SIZE and

MDTM commands which are not supported by all ftp servers, unless we
  are in debugging mode.
This commit is contained in:
christos 1996-12-25 16:00:38 +00:00
parent 41b4e57ece
commit 942194d9f4

View File

@ -1,4 +1,4 @@
/* $NetBSD: cmds.c,v 1.11 1996/12/06 02:06:46 lukem Exp $ */ /* $NetBSD: cmds.c,v 1.12 1996/12/25 16:00:38 christos Exp $ */
/* /*
* Copyright (c) 1985, 1989, 1993, 1994 * Copyright (c) 1985, 1989, 1993, 1994
@ -37,7 +37,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94"; static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else #else
static char rcsid[] = "$NetBSD: cmds.c,v 1.11 1996/12/06 02:06:46 lukem Exp $"; static char rcsid[] = "$NetBSD: cmds.c,v 1.12 1996/12/25 16:00:38 christos Exp $";
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -2257,7 +2257,7 @@ remotesize(file)
verbose = -1; verbose = -1;
if (command("SIZE %s", file) == COMPLETE) if (command("SIZE %s", file) == COMPLETE)
sscanf(reply_string, "%*s %qd", &size); sscanf(reply_string, "%*s %qd", &size);
else if (debug == 0) else if (debug != 0)
printf("%s\n", reply_string); printf("%s\n", reply_string);
verbose = overbose; verbose = overbose;
return (size); return (size);
@ -2316,7 +2316,7 @@ remotemodtime(file)
printf("Can't convert %s to a time\n", reply_string); printf("Can't convert %s to a time\n", reply_string);
else else
rtime += timebuf.tm_gmtoff; /* conv. local -> GMT */ rtime += timebuf.tm_gmtoff; /* conv. local -> GMT */
} else if (debug == 0) } else if (debug != 0)
printf("%s\n", reply_string); printf("%s\n", reply_string);
verbose = overbose; verbose = overbose;
return(rtime); return(rtime);
@ -2344,7 +2344,7 @@ modtime(argc, argv)
} }
/* /*
* show status on reomte machine * show status on remote machine
*/ */
void void
rmtstatus(argc, argv) rmtstatus(argc, argv)