]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak
authorKern Sibbald <kern@sibbald.com>
Mon, 8 Sep 2008 17:56:18 +0000 (17:56 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 8 Sep 2008 17:56:18 +0000 (17:56 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7563 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/plugins/fd/bpipe-fd.c

index c083b1361f78ce3f7a2396339d657bf8e6abbca8..c211bb48c10d299e2eb08e795637b256c876b6c8 100644 (file)
@@ -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);