Skip to content

Commit

Permalink
AllowCompression setting doesn't work with LZ4/LZFast
Browse files Browse the repository at this point in the history
Fixes #497: AllowCompression setting doesn't work with LZ4/LZFast
  • Loading branch information
Marco van Wieringen committed Jul 16, 2015
1 parent e2e32f4 commit 0d84ff4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dird/fd_cmds.c
Expand Up @@ -335,8 +335,12 @@ static bool send_fileset(JCR *jcr)
for (int k = 0; fo->opts[k] != '\0'; k++) {
/*
* Z compress option is followed by the single-digit compress level or 'o'
* For fastlz its Zf with a single char selecting the actual compression algo.
*/
if (fo->opts[k]=='Z') {
if (fo->opts[k] == 'Z' && fo->opts[k + 1] == 'f') {
done = true;
k += 2; /* skip option */
} else if (fo->opts[k] == 'Z') {
done = true;
k++; /* skip option and level */
} else {
Expand Down

0 comments on commit 0d84ff4

Please sign in to comment.