Skip to content

Commit

Permalink
Fix config pretty printer.
Browse files Browse the repository at this point in the history
When printing the compression used it eats an extra char so the pretty
printer doesn't print the next option in the option string. We should
also print GZIP without \n as we print the level after it, currently
its printed on the next line.

Fixes #466: option noatime = yes in bconcole displays like 6 (digit)
  • Loading branch information
Marco van Wieringen committed May 11, 2015
1 parent 6370658 commit 0a71179
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dird/dird_conf.c
Expand Up @@ -1970,11 +1970,10 @@ bool FILESETRES::print_config(POOL_MEM &buff, bool hide_sensitive_data)
indent_config_item(cfg_str, 3, "Compression = ");
p++; /* skip Z */
if (*p >= '0' && *p <= '9') {
Mmsg(temp, "GZIP\n");
Mmsg(temp, "GZIP");
pm_strcat(cfg_str, temp.c_str());
Mmsg(temp, "%c\n", *p);
pm_strcat(cfg_str, temp.c_str());
p++; /* skip number */
} else if (*p == 'o') {
Mmsg(temp, "LZO\n");
pm_strcat(cfg_str, temp.c_str());
Expand Down

0 comments on commit 0a71179

Please sign in to comment.