aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2006-10-07 02:44:05 +0000
committerintrigeri <intrigeri@boum.org>2006-10-07 02:44:05 +0000
commit26e33dcc47a082e4b3f935a5672eb6cd670e9ce0 (patch)
tree4cdc72ddfc29981fe582b3703bea5bf997a8c2f5 /src
parentc836982f43d67d19cceb6c727675fbbc22ae7981 (diff)
downloadbackupninja-26e33dcc47a082e4b3f935a5672eb6cd670e9ce0.tar.gz
backupninja-26e33dcc47a082e4b3f935a5672eb6cd670e9ce0.tar.bz2
ninjahelper.in: remove runtime overzealous perms checks on the helpers
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ninjahelper.in18
1 files changed, 0 insertions, 18 deletions
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."