]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
cmd/fscrypt: fix up path formatting in ErrDirNotEmpty suggestion (#229)
authorEric Biggers <ebiggers@google.com>
Fri, 15 May 2020 02:48:23 +0000 (19:48 -0700)
committerGitHub <noreply@github.com>
Fri, 15 May 2020 02:48:23 +0000 (19:48 -0700)
commit636698bb79ab182b72f7da6172fa3fd7ffd58e3c
tree907ff56c3ef7a9b785dc8ef258f1a880fa738ec1
parentbc9f5e542745f102de70ade555114eb28591fcd1
cmd/fscrypt: fix up path formatting in ErrDirNotEmpty suggestion (#229)

Use %q, in case the paths contain whitespace.  Also clean the directory
path to remove trailing slashes before appending the ".new" suffix.
cli-tests/t_encrypt.out
cli-tests/t_encrypt.sh
cmd/fscrypt/errors.go