X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fbackupninja.in;h=114d66c2faef86fb13967ecaf9ea97c259cc80fe;hb=5f16817876de4cb60fc9195937847c7de816dbaa;hp=fb6cc16e39eea4d4f917662bff30f5b63017c41f;hpb=bbe9a18b73458d56c34d221823554d603d0098bd;p=matthijs%2Fupstream%2Fbackupninja-vserver.git diff --git a/src/backupninja.in b/src/backupninja.in index fb6cc16..114d66c 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -132,7 +132,7 @@ function msg { function check_perms() { local file=$1 local perms - perms=($(stat -L --printf='%a %g %G %u %U' $file)) + perms=($(stat -L --format='%a %g %G %u %U' $file)) local gperm=${perms[0]:1:1} local wperm=${perms[0]:2:1} local gid=${perms[1]} @@ -476,7 +476,7 @@ errormsg="" if [ "$singlerun" ]; then files=$singlerun else - files=`find -L $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n` + files=`find $configdirectory -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n` if [ -z "$files" ]; then fatal "No backup actions configured in '$configdirectory', run ninjahelper!"