NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/45200: Scp hangs after sending



The following reply was made to PR bin/45200; it has been noted by GNATS.

From: "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/45200: Scp hangs after sending
Date: Mon, 1 Aug 2011 16:55:51 +0200

 Looks related to being compiled with ssp. With this diff it works for me:
 
 RCS file: /cvsroot/src/crypto/external/bsd/openssh/dist/atomicio.c,v
 --- atomicio.c  25 Jul 2011 03:03:10 -0000      1.3
 +++ atomicio.c  1 Aug 2011 14:47:46 -0000
 @@ -53,5 +53,5 @@ atomicio6(ssize_t (*f) (int, void *, siz
  
         pfd.fd = fd;
 -       pfd.events = f == read ? POLLIN : POLLOUT;
 +       pfd.events = f != vwrite ? POLLIN : POLLOUT;
         while (n > pos) {
                 res = (f) (fd, s + pos, n - pos);
 
 Looks like sometimes `read' gets renamed to `_ssp_protected_read' and here
 it looks like `f != read' when called as `atomicio6(read, ...'.
 --
 Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)
 


Home | Main Index | Thread Index | Old Index