svn commit: r198807 - in stable/7/sys: . boot/i386/libi386 contrib/pf

Ed Maste emaste at FreeBSD.org
Mon Nov 2 16:46:54 UTC 2009


Author: emaste
Date: Mon Nov  2 16:46:53 2009
New Revision: 198807
URL: http://svn.freebsd.org/changeset/base/198807

Log:
  MFC r197082:
  
    If the pxe client is told to use / as the root path, honour that rather
    of trying to mount /pxeroot instead.
  
  PR:		i386/106493
  Submitted by:	Andrey Russev

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/boot/i386/libi386/pxe.c
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/boot/i386/libi386/pxe.c
==============================================================================
--- stable/7/sys/boot/i386/libi386/pxe.c	Mon Nov  2 16:46:06 2009	(r198806)
+++ stable/7/sys/boot/i386/libi386/pxe.c	Mon Nov  2 16:46:53 2009	(r198807)
@@ -282,7 +282,7 @@ pxe_open(struct open_file *f, ...)
 		bootp(pxe_sock, BOOTP_PXE);
 		if (rootip.s_addr == 0)
 			rootip.s_addr = bootplayer.sip;
-		if (!rootpath[1])
+		if (!rootpath[0])
 			strcpy(rootpath, PXENFSROOTPATH);
 
 		for (i = 0; rootpath[i] != '\0' && i < FNAME_SIZE; i++)


More information about the svn-src-stable-7 mailing list