From 237c0ec5c3f0b9f5d54a19973c70ecddb9193a98 Mon Sep 17 00:00:00 2001 From: emaste Date: Thu, 10 Sep 2009 22:05:43 +0000 Subject: 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 MFC after: 1 month --- sys/boot/i386/libi386/pxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/boot/i386') diff --git a/sys/boot/i386/libi386/pxe.c b/sys/boot/i386/libi386/pxe.c index 4b99c91..5629d90 100644 --- a/sys/boot/i386/libi386/pxe.c +++ b/sys/boot/i386/libi386/pxe.c @@ -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++) -- cgit v1.1