Fix bug 422 (bpipe plugin)

This commit is contained in:
Sergey Morozov
2015-04-26 00:52:52 +03:00
parent 2c50e558a9
commit 10e247c316
3 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
From c4baf251aeee31ecc91f1c24803a9b73a7311b8c Mon Sep 17 00:00:00 2001
From: Marco van Wieringen <marco.van.wieringen@bareos.com>
Date: Tue, 3 Feb 2015 15:45:41 +0100
Subject: [PATCH] Use argument_value not argument in bpipe config parser.
Fixes #422: bpipe plugin: Error closing stream for pseudo file file:
---
src/plugins/filed/bpipe-fd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/filed/bpipe-fd.c b/src/plugins/filed/bpipe-fd.c
index 87db794..0e9e1e0 100644
--- a/src/plugins/filed/bpipe-fd.c
+++ b/src/plugins/filed/bpipe-fd.c
@@ -823,12 +823,12 @@ static bRC parse_plugin_definition(bpContext *ctx, void *value)
/*
* Keep the first value, ignore any next setting.
*/
- set_string_if_null(str_destination, argument);
+ set_string_if_null(str_destination, argument_value);
} else {
/*
* Overwrite any existing value.
*/
- set_string(str_destination, argument);
+ set_string(str_destination, argument_value);
}
}