summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-29 12:20:04 +0100
committerErich Eckner <git@eckner.net>2017-10-29 12:20:04 +0100
commit5a7d7b895949839439dbe34bf5809c32d8f29075 (patch)
tree857132b3d2dcc7bbf53550a69bd74f9b19a9d608
parenta22c18bfd11c52e8d8ee72dc7e15213c4333248f (diff)
downloadcryptfs-daemon-5a7d7b895949839439dbe34bf5809c32d8f29075.tar.xz
cryptfs.bin: do not fail on empty crypttab
-rw-r--r--cryptfs.bin.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/cryptfs.bin.in b/cryptfs.bin.in
index ffaf673..9e8e1e7 100644
--- a/cryptfs.bin.in
+++ b/cryptfs.bin.in
@@ -217,6 +217,7 @@ do_crypt_open() {
}
echo "${crypttab}" | \
+ grep -vxF '' | \
while read -r name raw key; do
key="${key%% *}"
key_mount=$(mountpoint_to_file "${key}")