From b652a2eb1e2f40c69e454199810123d3e96ae01f Mon Sep 17 00:00:00 2001 From: Dean Jansa Date: Thu, 1 Sep 2005 21:26:17 +0000 Subject: Pull out old debug output. Fix the syslog of the QP_GETFILE to a QP_RECVFILE Fix typeo in the returncode packet in QP_RECVFILE --- qarsh/qarshd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qarsh/qarshd.c b/qarsh/qarshd.c index 70ed09d..1427089 100644 --- a/qarsh/qarshd.c +++ b/qarsh/qarshd.c @@ -159,7 +159,6 @@ handle_packets(int infd) pid_t child_pid = 0; int child_status; ssize_t nbytes; - int i=0; sigemptyset(&sigmask); sigaddset(&sigmask, SIGCHLD); @@ -173,7 +172,6 @@ handle_packets(int infd) FD_SET(infd, &rfds); timeout.tv_sec = 3; - syslog(LOG_INFO, "Iteration: %d\n", i++); nfd = pselect(infd+1, &rfds, NULL, NULL, &timeout, &orig_sigmask); if (child_exitted) { @@ -224,7 +222,7 @@ handle_packets(int infd) qp->qp_runcmd.qp_stderr_port); break; case QP_RECVFILE: - syslog(LOG_INFO, "Got a QP_GETFILE with path = %s, " + syslog(LOG_INFO, "Got a QP_RECVFILE with path = %s, " "ifd = %d, count = %d, mode = %o\n", qp->qp_recvfile.qp_path, qp->qp_recvfile.qp_if_port, @@ -242,9 +240,10 @@ handle_packets(int infd) qp->qp_recvfile.qp_count, nbytes); rp = make_qp_returncode(-1, 0, tmpstr); } else { - rp = make_qp_returncode(0, 0, "Tranfer Complete"); + rp = make_qp_returncode(0, 0, "Transfer Complete"); } send_packet(fileno(stdout), rp); + qpfree(rp); break; case QP_SENDFILE: syslog(LOG_INFO, "Got a QP_SENDFILE with path = %s, " -- cgit