From fdcdd52407873242e2432cf36ae696c64dc154a6 Mon Sep 17 00:00:00 2001 From: Anathema Date: Tue, 23 Aug 2011 16:55:46 +0200 Subject: [PATCH] fixed chown and chmod tomb file path, that prevents from change the owner and permissions on newly created tomb --- src/tomb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tomb b/src/tomb index 0a4aed6..bf24f4d 100755 --- a/src/tomb +++ b/src/tomb @@ -495,8 +495,8 @@ create_tomb() { # set permissions on the tomb ME=${SUDO_USER:-$(whoami)} - chmod 0600 ${tombfile} - chown $(id -u $ME):$(id -g $ME) ${tombfile} + chmod 0600 "${tombdir}/${tombfile}" + chown $(id -u $ME):$(id -g $ME) "${tombdir}/${tombfile}" act "done creating $tombname encrypted storage (using Luks dm-crypt AES/SHA256)" notice "Your tomb is ready in ${tombdir}/${tombfile} and secured with key ${tombfile}.key"