]> sourceware.org Git - systemtap.git/commit
Fix (and centralize) temporary directory creation in the http server.
authorDavid Smith <dsmith@redhat.com>
Tue, 12 Jun 2018 19:19:01 +0000 (14:19 -0500)
committerDavid Smith <dsmith@redhat.com>
Tue, 12 Jun 2018 19:19:01 +0000 (14:19 -0500)
commit8f8dc661c0113f9eb8d1accd00cefd218955e2ec
tree9910f3a89f3264e5f3d7a5106810db53f513a295
parent28f6e1fe2571101a588b80d7569b49bebf11ed9c
Fix (and centralize) temporary directory creation in the http server.

* httpd/api.cxx (build_collection_rh::POST): Always ensure there is a
  server temporary directory (otherwise files are attempted to be written
  to the root directory). Use make_temp_directory() to create the client
  temporary directory.
* httpd/utils.cxx (make_temp_dir): New function.
* httpd/utils.h: Added make_temp_dir() prototype.
* httpd/server.cxx (connection_info::postdataiterator): Use
  make_temp_directory().
httpd/api.cxx
httpd/server.cxx
httpd/utils.cxx
httpd/utils.h
This page took 0.028345 seconds and 5 git commands to generate.