commit d979ebc332765f554b0e63bf517177ac845c7ab3
parent ce7edc1b6321196088c7447c8b3612dc5dd86e7a
Author: nignux <nignux@freaknet.org>
Date:   Mon, 29 Aug 2011 05:09:03 -0700
Merge pull request #35 from davinerd/fix_permissions_tomb
fixed chown and chmod tomb file
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tomb b/src/tomb
@@ -500,8 +500,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"