From dd6e50823be7ad619eb750603b780331d4ec6e99 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Tue, 18 Aug 2009 12:27:02 +0000 Subject: Give proper permissions to diff files. --- cron-sh/functions.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cron-sh/functions.sh') diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh index 43d0820..40fbcab 100644 --- a/cron-sh/functions.sh +++ b/cron-sh/functions.sh @@ -42,6 +42,8 @@ Diffcheck() { YESTERDAY="$2" DAY_DIFF="$3" MESSAGE="$4" + # give the proper permission to files + msecperms -q -e "$TODAY" "$YESTERDAY" if [[ -f ${YESTERDAY} ]]; then if ! diff -u ${YESTERDAY} ${TODAY} > ${DAY_DIFF}; then printf "\nSecurity Warning: change in $MESSAGE found :\n" >> ${DIFF} @@ -52,6 +54,7 @@ Diffcheck() { printf "\t\t- Removed $MESSAGE : ${file}\n" done >> ${DIFF} fi + msecperms -q -e "$DAY_DIFF" fi } -- cgit v1.2.1