Commit 62e75f58 authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

Added debugging messages in sftp_process_realpath,

sftp_process_symlink and sftp_process.

Rev: src/sftp/sftp-server.c:1.16
parent cce9694c
......@@ -824,6 +824,8 @@ sftp_process_realpath(struct sftp_ctx *ctx)
sftp_put_filename(ctx, &st, resolved);
DEBUG (("sftp_process_realpath: Resolved %s to %s\n", name, resolved));
sftp_set_msg( ctx->o, SSH_FXP_NAME );
return 1;
......@@ -1231,6 +1233,8 @@ sftp_process_symlink(struct sftp_ctx *ctx)
&& (targetpath = sftp_get_name(ctx->i))) )
return sftp_bad_message(ctx);
DEBUG (("sftp_process_symlink: Linkpath: %s Targetpat: %s\n", linkpath, targetpath));
if (symlink(targetpath, linkpath) < 0)
return sftp_send_errno(ctx, errno);
......@@ -1263,6 +1267,8 @@ sftp_process(sftp_process_func **dispatch,
if (!sftp_get_uint32(ctx->i, &id))
FATAL("Invalid packet.");
DEBUG (("sftp_process: msg: %d, id: %d\n", msg, id));
/* Every reply starts with the id, so copy it through */
sftp_set_id(ctx->o, id);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment