svn commit: r186799 - head/lib/libstand

Luigi Rizzo luigi at FreeBSD.org
Mon Jan 5 15:25:35 PST 2009


Author: luigi
Date: Mon Jan  5 23:25:35 2009
New Revision: 186799
URL: http://svn.freebsd.org/changeset/base/186799

Log:
  put a prefix on dhcp options to avoid clobbering, even by mistake,
  existing environment variables.
  
  MFC after:	2 weeks

Modified:
  head/lib/libstand/bootp.c

Modified: head/lib/libstand/bootp.c
==============================================================================
--- head/lib/libstand/bootp.c	Mon Jan  5 22:09:46 2009	(r186798)
+++ head/lib/libstand/bootp.c	Mon Jan  5 23:25:35 2009	(r186799)
@@ -496,7 +496,7 @@ static struct dhcp_opt vndr_opt[] = { /*
 	{94,	__BYTES,	"network-interface"},
 	{97,	__BYTES,	"machine-identifier"},
 #else					/* default (empty) table */
-	{0,	0,	""},		/* prefix */
+	{0,	0,	"dhcp.vendor."},		/* prefix */
 #endif
 	{0,	__TXT,	"%soption-%d"}
 };


More information about the svn-src-head mailing list