search for: sftp_conn

Displaying 18 results from an estimated 18 matches for "sftp_conn".

2003 Oct 30
2
sftp client reget reput
...reg Hayes diff -u -r openssh-3.7.1p2/sftp-client.c openssh-3.7.1p2_sftp/sftp-client.c --- openssh-3.7.1p2/sftp-client.c 2003-07-02 22:46:57.000000000 -0500 +++ openssh-3.7.1p2_sftp/sftp-client.c 2003-10-16 10:09:51.000000000 -0500 @@ -735,8 +735,13 @@ } int +#ifdef REGET +do_download(struct sftp_conn *conn, char *remote_path, char *local_path, + int pflag, int rflag) +#else do_download(struct sftp_conn *conn, char *remote_path, char *local_path, int pflag) +#endif { Attrib junk, *a; Buffer msg; @@ -798,8 +803,17 @@ return(-1); } - local_fd = open(local_path, O_WRONLY | O_CR...
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
2009 Feb 12
2
[patch] hard link protocol extension for sftp
...nt implementations. Comments are welcome. Thanks, Miklos Index: ssh/sftp-client.c =================================================================== --- ssh.orig/sftp-client.c 2009-02-10 14:54:58.000000000 +0100 +++ ssh/sftp-client.c 2009-02-10 15:15:08.000000000 +0100 @@ -63,6 +63,7 @@ struct sftp_conn { #define SFTP_EXT_POSIX_RENAME 0x00000001 #define SFTP_EXT_STATVFS 0x00000002 #define SFTP_EXT_FSTATVFS 0x00000004 +#define SFTP_EXT_LINK 0x00000008 u_int exts; }; @@ -328,10 +329,14 @@ do_init(int fd_in, int fd_out, u_int tra strcmp(value, "2") == 0) { exts |= SFTP_E...
2002 Nov 05
0
[PATCH] Add getlink command to sftp
...status = get_status(conn->fd_in, id); if (status != SSH2_FX_OK) ! error("Couldn't symlink file \"%s\" to \"%s\": %s", oldpath, newpath, fx2txt(status)); return(status); *************** *** 673,679 **** } char * ! do_readlink(struct sftp_conn *conn, char *path) { Buffer msg; u_int type, expected_id, count, id; --- 673,679 ---- } char * ! do_readlink(struct sftp_conn *conn, char *path, Attrib *attrib) { Buffer msg; u_int type, expected_id, count, id; *************** *** 712,717 **** --- 712,720 ---- debug3(&q...
2013 Jan 12
1
[Bug 2021] sftp resume support (using size and offset)
https://bugzilla.mindrot.org/show_bug.cgi?id=2021 --- Comment #10 from Loganaden Velvindron <loganaden at gmail.com> --- ping :-) ? -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
2003 Oct 01
1
3.7.1p2 sftp recurse patch
...); printf("rmdir path Remove remote directory\n"); printf("rm path Delete remote file\n"); printf("symlink oldpath newpath Symlink remote file\n"); @@ -430,6 +436,106 @@ } static int +do_recursive_download(struct sftp_conn *conn, char *remote_path, + char *local_path, int pflag) +{ + char *remote_tmp, *local_tmp; + int err, n; + SFTP_DIRENT **d; + extern int errno; + + if (recursion && remote_is_dir(conn, remote_path)) { + if (!is_dir(local_path)) { + /* Create local directory */ + err = mkdir(loc...
2013 Jun 19
9
[Bug 2021] sftp resume support (using size and offset)
https://bugzilla.mindrot.org/show_bug.cgi?id=2021 Loganaden Velvindron <loganaden at gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #2199|0 |1 is obsolete| | --- Comment #12 from Loganaden Velvindron
2002 Oct 18
1
Patch: sftp client support of "ls [flags] [path [localfile]]" feature
...of ls/dir to a local file. The following are the diff outputs against 3.5p1 to enable this feature. *** sftp-int.c.orig Wed Sep 11 20:34:15 2002 --- sftp-int.c Fri Oct 18 13:39:46 2002 *************** *** 555,567 **** /* sftp ls.1 replacement for directories */ static int ! do_ls_dir(struct sftp_conn *conn, char *path, char *strip_path, int lflag) { int n; SFTP_DIRENT **d; if ((n = do_readdir(conn, path, &d)) != 0) return (n); /* Count entries for sort */ for (n = 0; d[n] != NULL; n++) --- 555,587 ---- /* sftp ls.1 replacement for directories */ static int ! do_l...
2006 May 15
0
[PATCH 7/12] bugfix: openssh-4.3p2
...sftp.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -uprN openssh-4.3p2/sftp.c openssh-4.3p2-kylie/sftp.c --- openssh-4.3p2/sftp.c 2006-01-31 04:49:28.000000000 -0600 +++ openssh-4.3p2-kylie/sftp.c 2006-05-08 15:01:49.907239064 -0500 @@ -539,14 +539,15 @@ process_get(struct sftp_conn *conn, char if (g.gl_matchc == 1 && dst) { /* If directory specified, append filename */ if (is_dir(dst)) { + xfree(tmp); if (infer_path(g.gl_pathv[0], &tmp)) { err = 1; goto out; } abs_dst = path_append(dst, tmp); - xfree(tmp); } else...
2006 Apr 01
0
sftp tab completion patch (First release - NOT FOR INCLUDING YET)
...Ben Index: sftp.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/sftp.c,v retrieving revision 1.80 diff -u -r1.80 sftp.c --- sftp.c 27 Mar 2006 23:15:46 -0000 1.80 +++ sftp.c 31 Mar 2006 23:31:13 -0000 @@ -64,6 +64,9 @@ int remote_glob(struct sftp_conn *, const char *, int, int (*)(const char *, int), glob_t *); /* proto for sftp-glob.c */ +/* sftp connection structure */ +struct sftp_conn *conn; + /* Separators for interactive commands */ #define WHITESPACE " \t\r\n" @@ -108,42 +111,49 @@ struct CMD { const char *c;...
2007 Dec 12
0
Revisiting sftp tab completion patch
...Ben Index: sftp.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/sftp.c,v retrieving revision 1.97 diff -u -r1.97 sftp.c --- sftp.c 24 Oct 2007 03:30:02 -0000 1.97 +++ sftp.c 12 Dec 2007 03:19:32 -0000 @@ -71,6 +71,12 @@ int remote_glob(struct sftp_conn *, const char *, int, int (*)(const char *, int), glob_t *); /* proto for sftp-glob.c */ +/* sftp connection structure */ +struct sftp_conn *conn; + +/* sftp remote path */ +char *remote_path; + /* Separators for interactive commands */ #define WHITESPACE " \t\r\n" @@ -115,42...
2022 Nov 11
1
Memory leak, make_absolute_pwd_glob
...*pwd) { char *ret, *escpwd; escpwd = escape_glob(pwd); if (p == NULL) return escpwd; - ret = make_absolute(xstrdup(p), escpwd); + ret = make_absolute(p, escpwd); free(escpwd); return ret; } @@ -641,7 +641,7 @@ process_get(struct sftp_conn *conn, const char *src, const char *dst, glob_t g; int i, r, err = 0; - abs_src = make_absolute_pwd_glob(src, pwd); + abs_src = make_absolute_pwd_glob(xstrdup(src), pwd); memset(&g, 0, sizeof(g)); debug3("Looking up %s", abs_src);
2013 Sep 10
2
[Bug 2151] New: Call to upload_dir() has pflag and printflag swapped
...f (upload_dir(conn, g.gl_pathv[i], abs_dst, sftp.c-722- pflag || global_pflag, 1) == -1) sftp.c-723- err = -1; sftp.c-724- } else { -- sftp-client.c-1643-} sftp-client.c-1644- sftp-client.c-1645-int sftp-client.c:1646:upload_dir(struct sftp_conn *conn, char *src, char *dst, int printflag, sftp-client.c-1647- int pflag) sftp-client.c-1648-{ sftp-client.c-1649- char *dst_canon; -- You are receiving this mail because: You are watching the assignee of the bug.
2013 Nov 30
4
[Bug 2176] New: unchecked returned value from ftruncate
...Priority: P5 Component: sftp Assignee: unassigned-bugs at mindrot.org Reporter: loganaden at gmail.com Created attachment 2378 --> https://bugzilla.mindrot.org/attachment.cgi?id=2378&action=edit sftp_unchecked_return @@ -1253,7 +1253,9 @@ do_download(struct sftp_conn *conn, char "server reordered requests", local_path); } debug("truncating at %llu", (unsigned long long)highwater); - ftruncate(local_fd, highwater); ftruncate value isn't checked. -- You are receiving this mail because: You are w...
2015 Sep 11
11
[Bug 2463] New: Conflict with openbsd compat glob() function in shared libraries
https://bugzilla.mindrot.org/show_bug.cgi?id=2463 Bug ID: 2463 Summary: Conflict with openbsd compat glob() function in shared libraries Product: Portable OpenSSH Version: 7.1p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component:
2018 Dec 28
19
[Bug 2948] New: implement "copy-data" sftp extension
https://bugzilla.mindrot.org/show_bug.cgi?id=2948 Bug ID: 2948 Summary: implement "copy-data" sftp extension Product: Portable OpenSSH Version: -current Hardware: All URL: https://tools.ietf.org/html/draft-ietf-secsh-filexfer- extensions-00#section-7 OS: All Status: NEW
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
...define SSH2_FX_OK 0 #define SSH2_FX_EOF 1 Index: ssh/sftp-client.c =================================================================== --- ssh.orig/sftp-client.c 2009-02-12 14:11:30.000000000 +0100 +++ ssh/sftp-client.c 2009-02-12 14:11:37.000000000 +0100 @@ -1201,6 +1201,7 @@ do_upload(struct sftp_conn *conn, char * } stat_to_attrib(&sb, &a); + a.ext_flags = 0; a.flags &= ~SSH2_FILEXFER_ATTR_SIZE; a.flags &= ~SSH2_FILEXFER_ATTR_UIDGID; a.perm &= 0777;
2006 Aug 30
30
Testing for the 4.4p1 release
Hi, The 4.4p1 release is approaching now, so we are now asking people to actively test snapshots or CVS and report back to the mailing list. Snapshots are available from http://www.mindrot.org/openssh_snap or from any of the mirrors listed on http://www.openssh.org/portable.html The latter page also includes instructions for checking out portable OpenSSH via anonymous CVS. This release