summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/FileTransfer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* *: remove all usages of C++ streams (-10k in code size)Denys Vlasenko2010-02-071-2/+1
| | | | | | Also add copyright banners to all files which were missing them Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* SOSreport: make it avoid double runs; add forced regeneration; upd PLUGINS-HOWTODenys Vlasenko2010-01-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* TicketUploader and FileTransfer plugins: fixes after a round of testingDenys Vlasenko2010-01-211-80/+91
| | | | | | | for one, FileTransfer now would not use current dir as a storage for temp files. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* restore saving of backtrace broken by client->server security fixDenys Vlasenko2010-01-211-6/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: fix Report() dbus call gaping security holesDenys Vlasenko2010-01-211-6/+6
| | | | | | We were blindly trusting the values passed to us Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: assorted fixes prompted by security analysis; more to comeDenys Vlasenko2010-01-111-6/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: misc fixesDenys Vlasenko2010-01-111-14/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* prevent destructors from throwing exceptions; check curl_easy_init errorsDenys Vlasenko2009-12-161-6/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix all instances of atoi() usageDenys Vlasenko2009-12-151-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* get rid of ugly sleep call inside while()Denys Vlasenko2009-12-141-5/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, no code changesDenys Vlasenko2009-12-101-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove std::string usage from class CABRTException.Denys Vlasenko2009-12-061-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove getSettings from most plugins (inherited one is ok)Denys Vlasenko2009-11-101-10/+14
| | | | | | | | | Also move parse_release() to abrtlib, it's shared among Bugzilla and Catcut. Tested Bugzilla and Catcut, both work. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* give Plugin class a map_plugin_settings_t memberDenys Vlasenko2009-11-061-8/+6
| | | | | | This simplifies and unifies get/set settings ops Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify logging a bit. warn_client() is gone, reuse error_msg() for it.Denys Vlasenko2009-11-061-8/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make exception handling lighterDenys Vlasenko2009-11-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lib/Plugins/FileTransfer: massive surgeryDenys Vlasenko2009-11-061-4/+2
| | | | | | | | text data bss dec hex filename 50212 2144 16 52372 cc94 0/libTicketUploader.so 34693 1888 24 36605 8efd 1/libTicketUploader.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lib/Plugins/FileTransfer.cpp: another s/string&/char*/Denys Vlasenko2009-11-061-31/+27
| | | | | | | | text data bss dec hex filename 37324 2152 24 39500 9a4c libFileTransfer.so 33995 2112 24 36131 8d23 libFileTransfer.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass replace of const string& params by const char*Denys Vlasenko2009-11-061-48/+27
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lib/Plugins/CCpp: respect DebugInfoCacheMB settingDenys Vlasenko2009-11-021-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify messags handlingDenys Vlasenko2009-10-271-3/+2
| | | | | | | | | | text data bss dec hex filename 38598 1840 288 40726 9f16 old/libBugzilla.so 38474 1840 288 40602 9e9a new/libBugzilla.so 37433 2144 24 39601 9ab1 old/libFileTransfer.so 37382 2144 24 39550 9a7e new/libFileTransfer.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add "force" param to CreateReport dbus call. If !0, regenerates backtraceDenys Vlasenko2009-10-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* FileTransfer: add one more error check; shrink code a bitDenys Vlasenko2009-10-011-51/+67
| | | | | | | | text data bss dec hex filename 38475 2152 24 40651 9ecb abrt.t6/abrt-0.0.9/lib/Plugins/.libs/libFileTransfer.so 37433 2144 24 39601 9ab1 abrt.t7/abrt-0.0.9/lib/Plugins/.libs/libFileTransfer.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix possible mem leakdnovotny2009-10-011-2/+7
|
* error checking added to archive creationdnovotny2009-09-301-14/+48
|
* fix all instances of dent->d_type == DT_REG checksDenys Vlasenko2009-09-301-5/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove DBusManager::uniq_nameDenys Vlasenko2009-09-291-20/+23
| | | | | | also fix some whitespace damage Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rewrite FileTransfer to use library calls instead of commandline calls for ↵dnovotny2009-09-171-23/+132
| | | | compression
* remove a few #include <iostream>'sDenys Vlasenko2009-09-181-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add gettext support for all pluginsNikola Pajkovsky2009-09-021-9/+12
|
* simplify error handling. CrashWatcher.cpp lost a few wrapper functionsDenys Vlasenko2009-08-271-2/+1
| | | | | | -4k of code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add job ids (== thread ids) to warning/update DBus messagesDenys Vlasenko2009-08-261-9/+9
| | | | | | | | renamed: comm_layer_inner_warning -> warn_client comm_layer_inner_status -> update_client Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more sensible loggingDenys Vlasenko2009-08-251-7/+3
| | | | | | | | | | | comm_layer_inner_debug was jumping through the hoops in order to simply send a message to stderr. this can be made much simpler. also, set logmode to LOGMODE_SYSLOG in abrt daemon, making its log visible if it is daemonized. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add new parameter to FileTransfer pluginDaniel Novotny2009-08-251-3/+19
|
* moved LoadSettings from plugins into PluginManagerZdenek Prikryl2009-08-111-8/+0
|
* added new interface for geting plugins' settings (will be used in gui)Zdenek Prikryl2009-07-311-10/+29
|
* Move PLUGIN_INFOs to .cpp files: same object must never be defined twiceDenys Vlasenko2009-07-311-2/+10
| | | | | | | | and if structure is defined in a .h file, that happens. Since this particular structure has non-trivial destructor, it was running twice and resulted in double-free. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* added new option (dnovotny)Zdenek Prikryl2009-06-031-1/+6
|
* initial file transfer plugin (dnovotny)Zdenek Prikryl2009-05-201-0/+255