Password cache and encrypted home directory #1855
Labels
Code Quality
About code quality, refactoring, (unit) testing, linting, ...
Discussion
decision or consensus needed
I need an advice on this topic because I don't understand all the details and implications.
The config's default value about "use password cache" depends on the fact if the home directory is encrypted or not. If encrypted the default is
False
and otherwiseTrue
.backintime/common/config.py
Lines 846 to 853 in 8c7afef
backintime/common/tools.py
Lines 1178 to 1201 in 8c7afef
First of all I would like to understand why it is important to check that.
I am assuming this behavior is somehow relevant and can not just be removed. So I ask for suggestions about how to refactor this. It is my feeling that this
checkHomeEncrypt()
call shouldn't be in theConfig
class. If this check is relevant it should be done somewhere else. But where?Using
git grep
indicates no other place where this function is called.That issue is related to PR #1850 about introducing a new class about configuration management.
There is a commit from 2013 related to that function (
check_home_encrypt()
named) I will investigate further: 255e5ffThe text was updated successfully, but these errors were encountered: