]> granicus.if.org Git - ejabberd/commitdiff
Enforce pathtype use with config path (#1264)
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 7 Sep 2016 15:38:04 +0000 (17:38 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 7 Sep 2016 15:38:35 +0000 (17:38 +0200)
src/ejabberd_config.erl

index 87a9187048c11e9735cd9abb1877c8456c159d10..b75883fb2c480662ae27a13de2b138f1e72d0f6e 100644 (file)
@@ -318,7 +318,9 @@ get_absolute_path(File) ->
            File;
        relative ->
            {ok, Dir} = file:get_cwd(),
-           filename:absname_join(Dir, File)
+           filename:absname_join(Dir, File);
+       volumerelative ->
+           filename:absname(File)
     end.