network.c: set PREFIX to "/" for nfs and cifs methods due its mounted to image root
This commit is contained in:
parent
bcc496411b
commit
9e47dc484c
@ -764,7 +764,8 @@ enum return_type nfs_prepare(void)
|
||||
method_name = strdup("nfs");
|
||||
add_to_env("METHOD", method_name);
|
||||
add_to_env("HOST", answers[0]);
|
||||
add_to_env("PREFIX", answers[1]);
|
||||
add_to_env("PREFIX", "/");
|
||||
add_to_env("DIRECTORY", answers[1]);
|
||||
update_splash("found_media");
|
||||
return RETURN_OK;
|
||||
}
|
||||
@ -876,7 +877,8 @@ enum return_type cifs_prepare(void)
|
||||
method_name = strdup("cifs");
|
||||
add_to_env("METHOD", method_name);
|
||||
add_to_env("HOST", answers[0]);
|
||||
add_to_env("PREFIX", answers[1]);
|
||||
add_to_env("PREFIX", "/");
|
||||
add_to_env("DIRECTORY", answers[1]);
|
||||
update_splash("found_media");
|
||||
return RETURN_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user