NetBSD-Bugs archive

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

Re: bin/38396: sshd does not work



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

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/38396: sshd does not work
Date: Sat, 19 Apr 2008 20:25:41 +0200

 --tThc/1wpZn/ma/RB
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Here is the patch I attend to commit if noone objects (or votes for following
 the OpenBSD kernel change of behaviour)
 
 Martin
 
 --tThc/1wpZn/ma/RB
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=patch
 
 Index: monitor_fdpass.c
 ===================================================================
 RCS file: /cvsroot/src/crypto/dist/ssh/monitor_fdpass.c,v
 retrieving revision 1.7
 diff -u -r1.7 monitor_fdpass.c
 --- monitor_fdpass.c   13 Apr 2008 21:44:14 -0000      1.7
 +++ monitor_fdpass.c   19 Apr 2008 11:59:09 -0000
 @@ -65,6 +65,7 @@
        cmsg->cmsg_level = SOL_SOCKET;
        cmsg->cmsg_type = SCM_RIGHTS;
        *(int *)CMSG_DATA(cmsg) = fd;
 +      msg.msg_controllen = cmsg->cmsg_len;
  
        vec.iov_base = &ch;
        vec.iov_len = 1;
 
 --tThc/1wpZn/ma/RB--
 


Home | Main Index | Thread Index | Old Index