X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=psftp.c;h=9637e2e015a361c3378ec46ed0be2620a9e24408;hb=340afa273366858ad2a243b200a77b8fb3a1429a;hp=7bc556ee55b9a587922070f0802f6fd165004c91;hpb=cf44c428e3531d541064aaaa95bb0fe7ffd8f1aa;p=PuTTY.git diff --git a/psftp.c b/psftp.c index 7bc556ee..9637e2e0 100644 --- a/psftp.c +++ b/psftp.c @@ -201,7 +201,7 @@ int sftp_get_file(char *fname, char *outfname, int recurse, int restart, struct fxp_xfer *xfer; uint64 offset; FILE *fp; - int ret; + int ret, shown_err = FALSE; /* * In recursive mode, see if we're dealing with a directory. @@ -443,7 +443,10 @@ int sftp_get_file(char *fname, char *outfname, int recurse, int restart, ret = xfer_download_gotpkt(xfer, pktin); if (ret < 0) { - printf("error while reading: %s\n", fxp_error()); + if (!shown_err) { + printf("error while reading: %s\n", fxp_error()); + shown_err = TRUE; + } ret = 0; } @@ -1731,7 +1734,7 @@ static struct sftp_cmd_lookup { }, { "mput", TRUE, "upload multiple files at once", - " [ ... ]\n" + " [ -r ] [ -- ] [ ... ]\n" " Uploads many files to the server, storing each one under the\n" " same name it has on the client side. You can use wildcards\n" " such as \"*.c\" to specify lots of files at once.\n"