diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-11 07:20:57 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-11 07:20:57 +0100 |
commit | c2009ddeb7052dfe443f0239893f627759580c29 (patch) | |
tree | 41a2c5309ff941f45aa0dfbf826e2f92fa59d9c3 /lib/Plugins/SOSreport.cpp | |
parent | 1d038a9cf5e154406710800c372631f5c7c3fd81 (diff) | |
download | abrt-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.cpp | 3 |
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(), |