X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Focaml%2Fgetter%2FclientHTTP.ml;h=2444bded35afc1eab918c5a118b477f4a8be5bd4;hb=1c7fb836e2af4f2f3d18afd0396701f2094265ff;hp=4d5488c00de0766a2382d9489548c7e70b94a1ee;hpb=5a92117eeff70048d29e91ba24e113155d956e1b;p=helm.git diff --git a/helm/ocaml/getter/clientHTTP.ml b/helm/ocaml/getter/clientHTTP.ml index 4d5488c00..2444bded3 100644 --- a/helm/ocaml/getter/clientHTTP.ml +++ b/helm/ocaml/getter/clientHTTP.ml @@ -54,7 +54,11 @@ let get_and_save_to_tmp uri = done ; cs in - let tmp_file = Configuration.tmp_dir ^ "/" ^ (flat_string uri ".-=:;!?/&" '_') in + let user = try Unix.getlogin () with _ -> "" in + let tmp_file = + Filename.temp_file (user ^ flat_string uri ".-=:;!?/&" '_') "" + in get_and_save uri tmp_file ; tmp_file ;; +