Page MenuHomeFreeBSD

D51447.id158844.diff
No OneTemporary

D51447.id158844.diff

diff --git a/stand/common/misc.c b/stand/common/misc.c
--- a/stand/common/misc.c
+++ b/stand/common/misc.c
@@ -25,7 +25,11 @@
*/
#include <string.h>
+#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/in_systm.h>
#include <stand.h>
+#include <net.h>
#include <bootstrap.h>
/*
@@ -199,8 +203,15 @@
if ((rv = devparse(&ncurr, value, NULL)) != 0)
return (rv);
+ rv = (ncurr->d_dev->dv_type == DEVT_NET && netproto != NET_NFS);
+ DEBUG_PRINTF(1,("%s: currdev=%s dv_type=%d netproto=%d\n",
+ __func__, (char *)value, ncurr->d_dev->dv_type,
+ netproto));
free(ncurr);
-
+ if (rv != 0) {
+ env_setenv(ev->ev_name, flags | EV_NOHOOK, value, NULL, NULL);
+ return (0);
+ }
return (mount_currdev(ev, flags, value));
}

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 9, 9:26 AM (15 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36301578
Default Alt Text
D51447.id158844.diff (750 B)

Event Timeline