Change the order of the arguments to file_loadraw(). They were swapped

as of r262345 when file_loadraw() was made public and this little detail
got overlooked during porting.

Obtained from:	Juniper Networks, Inc.
This commit is contained in:
marcel 2014-11-01 18:51:48 +00:00
parent c3198cc7ab
commit 4817034120

View File

@ -286,7 +286,7 @@ install(char *pkgname)
}
s = (inst_rootfs == NULL) ? "/install.iso" : inst_rootfs;
if (file_loadraw("mfs_root", s) == NULL) {
if (file_loadraw(s, "mfs_root") == NULL) {
error = errno;
command_errmsg = "cannot load root file system";
goto fail;