mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Add encrypt support to lrzip.conf
This commit is contained in:
parent
7a74991f3f
commit
30e990fbcf
|
|
@ -57,3 +57,7 @@
|
|||
|
||||
# Override for Temporary Directory. Only valid when stdin/out or Test is used
|
||||
# TMPDIR = /tmp
|
||||
|
||||
# ENCRYPT = NO
|
||||
|
||||
# Whether to use encryption on compression
|
||||
3
main.c
3
main.c
|
|
@ -427,6 +427,9 @@ static void read_config(rzip_control *control)
|
|||
strcpy(control->tmpdir, parametervalue);
|
||||
if (strcmp(parametervalue + strlen(parametervalue) - 1, "/"))
|
||||
strcat(control->tmpdir, "/");
|
||||
} else if (isparameter(parameter, "encrypt")) {
|
||||
if (isparameter(parameter, "YES"))
|
||||
control->flags |= FLAG_ENCRYPT;
|
||||
} else
|
||||
/* oops, we have an invalid parameter, display */
|
||||
print_err("lrzip.conf: Unrecognized parameter value, %s = %s. Continuing.\n",\
|
||||
|
|
|
|||
Loading…
Reference in a new issue