From 43a2acea7545512c5e879096f7db4cd766e44687 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 8 Sep 2008 17:56:18 +0000 Subject: [PATCH] Tweak git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7563 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/plugins/fd/bpipe-fd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bacula/src/plugins/fd/bpipe-fd.c b/bacula/src/plugins/fd/bpipe-fd.c index c083b1361f..c211bb48c1 100644 --- a/bacula/src/plugins/fd/bpipe-fd.c +++ b/bacula/src/plugins/fd/bpipe-fd.c @@ -353,11 +353,11 @@ char *apply_rp_codes(struct plugin_ctx * p_ctx) str = "%"; break; case 'w': - str = p_ctx->where; + str = p_ctx->where; break; case 'r': - snprintf(add, 2, "%c", p_ctx->replace); - str = add; + snprintf(add, 2, "%c", p_ctx->replace); + str = add; break; default: add[0] = '%'; @@ -391,7 +391,7 @@ static bRC pluginIO(bpContext *ctx, struct io_pkt *io) case IO_OPEN: // printf("bpipe-fd: IO_OPEN\n"); if (io->flags & (O_CREAT | O_WRONLY)) { - char *writer_codes = apply_rp_codes(p_ctx); + char *writer_codes = apply_rp_codes(p_ctx); p_ctx->fd = popen(writer_codes, "w"); printf("bpipe-fd: IO_OPEN writer=%s\n", writer_codes); -- 2.39.5