diff options
author | emaste <emaste@FreeBSD.org> | 2009-09-10 22:05:43 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2009-09-10 22:05:43 +0000 |
commit | 237c0ec5c3f0b9f5d54a19973c70ecddb9193a98 (patch) | |
tree | 302d2c88f683365c00036d2043a6f35bba520d98 /sys/boot/i386 | |
parent | 8592325f693c956c711b385b1db0326a4df9a1c7 (diff) | |
download | FreeBSD-src-237c0ec5c3f0b9f5d54a19973c70ecddb9193a98.zip FreeBSD-src-237c0ec5c3f0b9f5d54a19973c70ecddb9193a98.tar.gz |
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
Diffstat (limited to 'sys/boot/i386')
-rw-r--r-- | sys/boot/i386/libi386/pxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |