From: Kern Sibbald Date: Mon, 8 Sep 2008 17:56:18 +0000 (+0000) Subject: Tweak X-Git-Tag: Release-7.0.0~4163 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f3977577520872f3f66d680a5c44a013c0a850fc;p=bacula%2Fbacula Tweak git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7563 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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);