X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fninjahelper.in;h=26d28567e17b04a694e4d6e899642a8bf4c492ce;hb=6b015afc1ed4d2be5e48e77eea1ca65cbcf69a1e;hp=e9b4f9ee710c28e6be3ab670831db06a1f1998ab;hpb=90316a33524fe051cbe110904391f317df13a7ac;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/src/ninjahelper.in b/src/ninjahelper.in index e9b4f9e..26d2856 100755 --- a/src/ninjahelper.in +++ b/src/ninjahelper.in @@ -4,23 +4,6 @@ #################################################### ## Functions -function check_perms() { - local file=$1 - local perms=`ls -ld $file` - group_w_perm=${perms:5:1} - world_w_perm=${perms:8:1} - if [ "$group_w_perm" == "w" -o "$world_w_perm" == "w" ]; then - echo $perms - echo "helper scripts must not be group or world writable! Dying on file $file" - exit - fi - if [ `ls -ld $file | awk '{print $3}'` != "root" ]; then - echo "helper scripts must be owned by root! Dying on file $file" - exit - fi -} - - ## ## returns the next available file name given a file ## in the form @CFGDIR@/backup.d/10.sys @@ -238,7 +221,6 @@ getconf scriptdirectory @datadir@ # load all the helpers HELPERS="" for file in `find $scriptdirectory -follow -name '*.helper'`; do - check_perms $file . $file if [ $? != 0 ]; then echo "An error occurred while loading $file. Hit return to continue."