Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.security.ssh > #15351

Re: Error output may not be obtained when executing a command with plink

Newsgroups comp.security.ssh
Date 2024-02-18 21:47 -0800
References <cb91d831-1d0b-4331-82d9-a8c8d6d5e3a2n@googlegroups.com>
Message-ID <8515f0e0-616f-449d-ad22-2ee9614bfc8dn@googlegroups.com> (permalink)
Subject Re: Error output may not be obtained when executing a command with plink
From ozawa01 jins <jinsozawa01@gmail.com>

Show all headers | View raw


I don't know if it's the correct fix, but after making the following fix, the problem no longer occurs.

putty-src\windows\handle-io.c
>static void handle_try_output(struct handle_output *ctx)
>{
>    if (!ctx->busy && bufchain_size(&ctx->queued_data)) {
>        ptrlen data = bufchain_prefix(&ctx->queued_data);
>        ctx->buffer = data.ptr;
>        ctx->len = min(data.len, ~(DWORD)0);
>        SetEvent(ctx->ev_from_main);
>        ctx->busy = true;
>    } else if (!ctx->busy && bufchain_size(&ctx->queued_data) == 0 &&
>               ctx->outgoingeof == EOF_PENDING) {
>        // comment out
>        //ctx->sentdata(ctx->sentdata_param, 0, 0, true);
>
>        // Add here. I have copied the processing from the same method in Putty v0.76.
>        CloseHandle(ctx->h);
>        ctx->h = INVALID_HANDLE_VALUE;
>        ctx->outgoingeof = EOF_SENT;
>    }
>}

Back to comp.security.ssh | Previous | NextPrevious in thread | Find similar


Thread

Error output may not be obtained when executing a command with plink ozawa01 jins <jinsozawa01@gmail.com> - 2024-02-13 21:45 -0800
  Re: Error output may not be obtained when executing a command with plink ozawa01 jins <jinsozawa01@gmail.com> - 2024-02-18 21:47 -0800

csiph-web