On 05/30/2012 05:27 PM, Jakub Filak wrote:
Signed-off-by: Jakub Filak<jfilak(a)redhat.com>
---
src/plugins/ureport.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/plugins/ureport.c b/src/plugins/ureport.c
index a8ac472..adcd14c 100644
--- a/src/plugins/ureport.c
+++ b/src/plugins/ureport.c
@@ -82,6 +82,12 @@ int main(int argc, char **argv)
);
parse_opts(argc, argv, program_options, program_usage_string);
+
+ {
+ const char *environ = getenv("uReport_URL");
+ url = environ ? environ : url;
+ }
- use a function here ^ instead of the code block, it's highly possible
that in time we will add few more configuration options, from the top of
my head: use ssl (yes, we should add support for it), contact email
(yes, the problem with getting some feedback from users is still not
solved), etc..
+
struct dump_dir *dd = dd_opendir(dump_dir_path, DD_OPEN_READONLY);
if (!dd)
xfunc_die();