aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-05-09 14:52:07 -0700
committerEric Biggers <ebiggers@google.com>2020-05-09 15:21:31 -0700
commit181600d6327ed34a3f62eda0dd03a6d2ae49e5f9 (patch)
treedda5a65b2d8c157e03d3d35f3442547dafd51e4c /security
parent197eb371697aff066947372d10732387454fd88a (diff)
cmd/fscrypt: improve errors
In checkEncryptable(), check whether the directory is already encrypted before checking whether it's empty. Also improve the error message for when a directory is nonempty. Finally, translate keyring.ErrKeyAddedByOtherUsers and keyring.ErrKeyFilesOpen into errors which include the directory.
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions