diff options
author | ctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-20 20:43:16 +0000 |
---|---|---|
committer | ctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-20 20:43:16 +0000 |
commit | 83628c6074cc45c6221d1d1300dc2368caa3914b (patch) | |
tree | 6edb95b379595c8ad4d073f2353e858eaa4d6488 /libvtv/vtv_rts.cc | |
parent | 98b21e4dce553348b115e4361cba67769a3c3340 (diff) | |
download | gcc-83628c6074cc45c6221d1d1300dc2368caa3914b.tar.gz |
Fix logging to not use /tmp or the current directory; get
the location for writing log files from an environment
variable; use secure getenv whenever possible.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libvtv/vtv_rts.cc')
-rw-r--r-- | libvtv/vtv_rts.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvtv/vtv_rts.cc b/libvtv/vtv_rts.cc index 1ddbbec7a07..1af000d8eb5 100644 --- a/libvtv/vtv_rts.cc +++ b/libvtv/vtv_rts.cc @@ -396,7 +396,7 @@ log_memory_protection_data (char *message) static int log_fd = -1; if (log_fd == -1) - log_fd = __vtv_open_log ("vtv_memory_protection_data_%d.log"); + log_fd = __vtv_open_log ("vtv_memory_protection_data.log"); __vtv_add_to_log (log_fd, "%s", message); } |