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
This commit is contained in:
parent
b561979f8c
commit
f94d7478f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=198806
@ -282,7 +282,7 @@ pxe_open(struct open_file *f, ...)
|
|||||||
bootp(pxe_sock, BOOTP_PXE);
|
bootp(pxe_sock, BOOTP_PXE);
|
||||||
if (rootip.s_addr == 0)
|
if (rootip.s_addr == 0)
|
||||||
rootip.s_addr = bootplayer.sip;
|
rootip.s_addr = bootplayer.sip;
|
||||||
if (!rootpath[1])
|
if (!rootpath[0])
|
||||||
strcpy(rootpath, PXENFSROOTPATH);
|
strcpy(rootpath, PXENFSROOTPATH);
|
||||||
|
|
||||||
for (i = 0; rootpath[i] != '\0' && i < FNAME_SIZE; i++)
|
for (i = 0; rootpath[i] != '\0' && i < FNAME_SIZE; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user