You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cmd/fscrypt/commands.go, Protectors should be reverted if they are created. The reversion on failure is here. But this has a problem.
If the protector is selected (not created) in selectOrCreateProtector() the protector will be reverted regardless on any error. This means a failure after selection can result in data loss. The documentation for selectOrCreateProtector() is also wrong, leading to this confusion.
The text was updated successfully, but these errors were encountered:
In
cmd/fscrypt/commands.go
, Protectors should be reverted if they are created. The reversion on failure is here. But this has a problem.If the protector is selected (not created) in
selectOrCreateProtector()
the protector will be reverted regardless on any error. This means a failure after selection can result in data loss. The documentation forselectOrCreateProtector()
is also wrong, leading to this confusion.The text was updated successfully, but these errors were encountered: