From bb6e7e3451a017d13c2bb7d3ee572d5bb579c2c8 Mon Sep 17 00:00:00 2001 From: Joe Rodriguez Jr Date: Tue, 10 Feb 2015 16:08:19 -0600 Subject: [PATCH 1/3] List files that BlackBox is tracking --- bin/blackbox_list_files | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bin/blackbox_list_files diff --git a/bin/blackbox_list_files b/bin/blackbox_list_files new file mode 100644 index 0000000..c7404e1 --- /dev/null +++ b/bin/blackbox_list_files @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# +# blackbox_list_files.sh -- List files that black box is tracking +# +set -e +blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +source ${blackbox_home}/_blackbox_common.sh + +echo -e "\nFiles currently managed my Blackbox:\n" +cat $BB_FILES + +echo From 28b8c413c0bb2eca328a31e9e97b8b479f44e149 Mon Sep 17 00:00:00 2001 From: Joe Rodriguez Jr Date: Wed, 11 Feb 2015 08:40:16 -0600 Subject: [PATCH 2/3] Make file executable. --- bin/blackbox_list_files | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 bin/blackbox_list_files diff --git a/bin/blackbox_list_files b/bin/blackbox_list_files old mode 100644 new mode 100755 From 1c69a11cdff16f788ad3a6f6e36f2d6f011d17f5 Mon Sep 17 00:00:00 2001 From: Joe Rodriguez Jr Date: Wed, 11 Feb 2015 13:47:00 -0600 Subject: [PATCH 3/3] Changing default umask. --- bin/_blackbox_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index eaf4bd3..a9df016 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -56,7 +56,8 @@ BB_FILES_FILE="blackbox-files.txt" BB_FILES="${KEYRINGDIR}/${BB_FILES_FILE}" SECRING="${KEYRINGDIR}/secring.gpg" PUBRING="${KEYRINGDIR}/pubring.gpg" -: ${DECRYPT_UMASK:=o=} ; +: ${DECRYPT_UMASK:=0022} ; +# : ${DECRYPT_UMASK:=o=} ; # Return error if not on cryptlist. function is_on_cryptlist() {