Used current working home as base directory to config relative path.
When a config relative path specified, get_absolute_path would not return an absolute path. The patch fixed it using current working home as base directory. Signed-off-by: Gu Feng <flygoast@126.com>
This commit is contained in:
parent
d5ecd32cec
commit
62ccf1cf0e
|
@ -210,9 +210,8 @@ get_absolute_path(File) ->
|
||||||
absolute ->
|
absolute ->
|
||||||
File;
|
File;
|
||||||
relative ->
|
relative ->
|
||||||
Config_path = get_ejabberd_config_path(),
|
{ok, Dir} = file:get_cwd(),
|
||||||
Config_dir = filename:dirname(Config_path),
|
filename:absname_join(Dir, File)
|
||||||
filename:absname_join(Config_dir, File)
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue