search for: ssh2_fx_op_unsupported

Displaying 8 results from an estimated 8 matches for "ssh2_fx_op_unsupported".

2006 Aug 17
0
[RFC] proposed extensions for SFTP
...quot;, path); + + ret = statvfs(path, &st); + if (ret == -1) + send_status(id, errno_to_portable(errno)); + else + send_statvfs(id, &st); +} + +static void process_extended(void) { u_int32_t id; @@ -1056,7 +1104,10 @@ id = get_int(); request = get_string(NULL); - send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ + if (strcmp(request, "statvfs at openssh.org") == 0) + process_extended_statvfs(id); + else + send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ xfree(request); } Index: sftp.h =================================================================== RCS file: /cvs/src/us...
2007 Dec 07
2
[PATCH] add statfs extension to sftp-server
...t); + if (ret == -1) + send_status(id, errno_to_portable(errno)); + else + send_statfs(id, &st); + xfree(path); +} + +static void process_extended(void) { u_int32_t id; @@ -1056,7 +1094,10 @@ process_extended(void) id = get_int(); request = get_string(NULL); - send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ + if (strcmp(request, "statfs at openssh.org") == 0) + process_extended_statfs(id); + else + send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ xfree(request); }
2006 Aug 19
0
[PATCH] add statfs extension to sftp-server
...t); + if (ret == -1) + send_status(id, errno_to_portable(errno)); + else + send_statfs(id, &st); + xfree(path); +} + +static void process_extended(void) { u_int32_t id; @@ -1056,7 +1094,10 @@ process_extended(void) id = get_int(); request = get_string(NULL); - send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ + if (strcmp(request, "statfs at openssh.org") == 0) + process_extended_statfs(id); + else + send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ xfree(request); }
2006 Aug 19
0
[PATCH] add atomic rename extension to sftp-server
...-1096,6 +1113,8 @@ process_extended(void) request = get_string(NULL); if (strcmp(request, "statfs at openssh.org") == 0) process_extended_statfs(id); + if (strcmp(request, "posix-rename at openssh.org") == 0) + process_extended_posix_rename(id); else send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ xfree(request);
2007 May 07
2
[PATCH] Adds support for SSH_FXP_LINK request to sftp-server and sftp client
Dear list, Attached is a patch that adds support for the SSH_FXP_LINK request, as described in draft-ietf-secsh-filexfer-07 onwards, to the sftp server and client. It is for and has been tested on the current portable snapshot but also applies to openbsd CVS. Thanks, -- Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: openssh-sftp-hardlink-pcvs-v2.patch
2009 Feb 12
2
[patch] hard link protocol extension for sftp
...1166,6 +1186,8 @@ process_extended(void) process_extended_statvfs(id); else if (strcmp(request, "fstatvfs at openssh.com") == 0) process_extended_fstatvfs(id); + else if (strcmp(request, "link at openssh.com") == 0) + process_extended_link(id); else send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ xfree(request); Index: ssh/sftp.c =================================================================== --- ssh.orig/sftp.c 2009-02-10 14:54:58.000000000 +0100 +++ ssh/sftp.c 2009-02-10 15:15:19.000000000 +0100 @@ -98,6 +98,7 @@ int remote_glob(struct sftp_conn *, cons #define I_GET...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
This patch adds all the missing commonly used UNIX attributes: st_dev, st_ino, st_nlink, st_rdev, st_blocks, st_blksize, st_ctime. In addition it extends st_atime and st_mtime to 64bits, and adds nanosecond resolution to all three timestamps. This is implemented as an extension to the ATTR message. This patch alone is sufficient for SSHFS to be able to use these attributes. The following two
2002 Mar 15
4
PATCH: sftp-server logging.
...} send_status(id, status); xfree(oldpath); *************** *** 946,951 **** --- 1126,1134 ---- id = get_int(); request = get_string(NULL); + #ifdef SFTP_LOGGING + log("(%d/%d/%s) Extended operation attempted - Ignoring.", ppid, cuid, CUNAME); + #endif send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ xfree(request); } *************** *** 965,970 **** --- 1148,1156 ---- msg_len = GET_32BIT(cp); if (msg_len > 256 * 1024) { error("bad message "); + #ifdef SFTP_LOGGING + log("(%d/%d/%s) SFTP session closing (%s).", ppid, cuid, CUNAME, "Bad...