search for: abs_dst

Displaying 9 results from an estimated 9 matches for "abs_dst".

Did you mean: abs_cnt
2002 Feb 06
2
SFTP Status Bar..
...LRM, updateprogressmeter); + alarm(PROGRESSTIME); + } else + alarm(0); + + errno = save_errno; +} + +static void help(void) { printf("Available commands:\n"); @@ -380,8 +399,8 @@ err = -1; goto out; } - printf("Fetching %s to %s\n", g.gl_pathv[0], abs_dst); - err = do_download(in, out, g.gl_pathv[0], abs_dst, pflag); + err = do_download(in, out, g.gl_pathv[0], abs_dst, pflag, + NULL); goto out; } @@ -404,8 +423,8 @@ } else abs_dst = tmp; - printf("Fetching %s to %s\n", g.gl_pathv[i], abs_dst); - if (do_download(in,...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...LRM, updateprogressmeter); + alarm(PROGRESSTIME); + } else + alarm(0); + + errno = save_errno; +} + +static void help(void) { printf("Available commands:\n"); @@ -382,8 +401,8 @@ err = -1; goto out; } - printf("Fetching %s to %s\n", g.gl_pathv[0], abs_dst); - err = do_download(in, out, g.gl_pathv[0], abs_dst, pflag); + err = do_download(in, out, g.gl_pathv[0], abs_dst, pflag, + NULL); goto out; } @@ -406,8 +425,8 @@ } else abs_dst = tmp; - printf("Fetching %s to %s\n", g.gl_pathv[i], abs_dst); - if (do_download(in,...
2002 Dec 05
2
[Bug 452] sftp does not abort when commands given via -b fail
http://bugzilla.mindrot.org/show_bug.cgi?id=452 ------- Additional Comments From spin at avalon.net 2002-12-06 03:15 ------- Forgot to mention that this is 3.1p1-6 RedHat RPM. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2003 Oct 01
1
3.7.1p2 sftp recurse patch
...local_tmp); + if (err == -1) + break; + } + closedir(d); + } else + err = do_upload(conn, local_path, remote_path, pflag); +END: + return err; +} + +static int process_get(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag) { char *abs_src = NULL; @@ -482,7 +588,7 @@ abs_dst = tmp; printf("Fetching %s to %s\n", g.gl_pathv[i], abs_dst); - if (do_download(conn, g.gl_pathv[i], abs_dst, pflag) == -1) + if (do_recursive_download(conn, g.gl_pathv[i], abs_dst, pflag) == -1) err = -1; xfree(abs_dst); abs_dst = NULL; @@ -528,7 +634,7 @@ } for (i...
2003 Oct 30
2
sftp client reget reput
...Quit sftp\n"); @@ -430,7 +445,11 @@ } static int +#ifdef REGET +process_get(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag, int rflag) +#else process_get(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag) +#endif { char *abs_src = NULL; char *abs_dst = NULL; @@ -482,7 +501,11 @@ abs_dst = tmp; printf("Fetching %s to %s\n", g.gl_pathv[i], abs_dst); +#ifdef REGET + if (do_download(conn, g.gl_pathv[i], abs_dst, pflag, rflag) == -1) +#else if (do_download(conn, g.gl_pathv[i], abs_dst, pflag) == -1) +#endif err = -1; xf...
2006 May 15
0
[PATCH 7/12] bugfix: openssh-4.3p2
.... In another path the variable is just not freed. The fix is to add the xfree before the second call to infer_path and to move the existing xfree to cover both paths (in one case this is on the result of the first infer_path in the second it is on the second call. The second bug is deadcode. The abs_dst variable has always been freed by the time the value is checked to call xfree before return. This patch fixes both bugs. This entire set of patches passed the regression tests on my system. Bug found by Coverity. Signed-off-by: Kylene Hall <kjhall at us.ibm.com> --- sftp.c | 5 ++---...
2008 Jul 21
2
sftp needs a long time for sending a filelist
Hello all Im using sftp 1:4.7p1-8ubuntu1.2 in a batchjob Ive noticed that sftp needs a long time for sending a filelist. The timespan increases exponential if many files are on the remoteserver. for example "ls -la *.txt" needs 10 seconds for 2000 files but needs 50 seconds for 4000 files. For 150.000 Files i have to wait 15 minutes for example but the
2002 Jan 30
1
Quick sftp status indicator.
...================== RCS file: /cvs/src/usr.bin/ssh/sftp-int.c,v retrieving revision 1.41 diff -u -r1.41 sftp-int.c --- sftp-int.c 2001/12/19 07:18:56 1.41 +++ sftp-int.c 2002/01/29 23:16:32 @@ -382,7 +382,6 @@ err = -1; goto out; } - printf("Fetching %s to %s\n", g.gl_pathv[0], abs_dst); err = do_download(in, out, g.gl_pathv[0], abs_dst, pflag); goto out; } @@ -464,7 +463,6 @@ } abs_dst = make_absolute(abs_dst, pwd); } - printf("Uploading %s to %s\n", g.gl_pathv[0], abs_dst); err = do_upload(in, out, g.gl_pathv[0], abs_dst, pflag); goto out;...
2013 Sep 10
2
[Bug 2151] New: Call to upload_dir() has pflag and printflag swapped
...t Make definition match actual usage. While working on a patch for sftp(1), I noticed that the pflag and This seems to have been the case since the initial inclusion in 5.4. sftp.c-718- if (!quiet) sftp.c-719- printf("Uploading %s to %s\n", g.gl_pathv[i], abs_dst); sftp.c-720- if (pathname_is_dir(g.gl_pathv[i]) && (rflag || global_rflag)) { sftp.c:721: if (upload_dir(conn, g.gl_pathv[i], abs_dst, sftp.c-722- pflag || global_pflag, 1) == -1) sftp.c-723- err = -1; sftp...