Reopening FreeBSD's compat devices was broken due to a missing flag

clear. Patch part of #7040. Thanks.
This commit is contained in:
Evgeniy Abdraimov
2013-09-06 01:11:31 +02:00
committed by Philippe Houdoin
parent 6576e6c774
commit fcc745e0e7
+1
View File
@@ -60,6 +60,7 @@ compat_open(const char *name, uint32 flags, void **cookie)
}
ifp->if_flags |= IFF_UP;
ifp->flags &= ~DEVICE_CLOSED;
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
*cookie = ifp;