summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/SOSreport.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-11 07:20:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-11 07:20:57 +0100
commitc2009ddeb7052dfe443f0239893f627759580c29 (patch)
tree41a2c5309ff941f45aa0dfbf826e2f92fa59d9c3 /lib/Plugins/SOSreport.cpp
parent1d038a9cf5e154406710800c372631f5c7c3fd81 (diff)
downloadabrt-c2009ddeb7052dfe443f0239893f627759580c29.tar.gz
abrt-c2009ddeb7052dfe443f0239893f627759580c29.tar.xz
abrt-c2009ddeb7052dfe443f0239893f627759580c29.zip
SOSreport/TicketUploader: use more restrictive file modes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/SOSreport.cpp')
-rw-r--r--lib/Plugins/SOSreport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Plugins/SOSreport.cpp b/lib/Plugins/SOSreport.cpp
index 899b446f..25769105 100644
--- a/lib/Plugins/SOSreport.cpp
+++ b/lib/Plugins/SOSreport.cpp
@@ -103,8 +103,9 @@ void CActionSOSreport::Run(const char *pActionDir, const char *pArgs)
dd.Open(pActionDir);
//Not useful
//dd.SaveText("sosreportoutput", output);
- if (copy_file(sosreport_filename.c_str(), sosreport_dd_filename.c_str()) < 0)
+ if (copy_file(sosreport_filename.c_str(), sosreport_dd_filename.c_str(), 0644) < 0)
{
+ dd.Close();
throw CABRTException(EXCEP_PLUGIN,
"Can't copy '%s' to '%s'",
sosreport_filename.c_str(),