Bugzilla – Attachment 1911 Details for
Bug 1561
Check for up on open tap device
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
/home/djm/sshd-tun-iff_up.diff
sshd-tun-iff_up.diff (text/plain), 698 bytes, created by
Damien Miller
on 2010-08-10 04:30:12 AEST
(
hide
)
Description:
/home/djm/sshd-tun-iff_up.diff
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2010-08-10 04:30:12 AEST
Size:
698 bytes
patch
obsolete
>Index: openbsd-compat/port-tun.c >=================================================================== >RCS file: /var/cvs/openssh/openbsd-compat/port-tun.c,v >retrieving revision 1.14 >diff -u -p -r1.14 port-tun.c >--- openbsd-compat/port-tun.c 19 May 2008 05:28:36 -0000 1.14 >+++ openbsd-compat/port-tun.c 9 Aug 2010 18:28:27 -0000 >@@ -173,9 +173,11 @@ sys_tun_open(int tun, int mode) > > if (ioctl(sock, SIOCGIFFLAGS, &ifr) == -1) > goto failed; >- ifr.ifr_flags |= IFF_UP; >- if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1) >- goto failed; >+ if ((ifr.ifr_flags & IFF_UP) == 0) { >+ ifr.ifr_flags |= IFF_UP; >+ if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1) >+ goto failed; >+ } > > close(sock); > return (fd);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 1561
:
1606
| 1911