aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2006-03-11 07:22:44 +0000
committerMicah Anderson <micah@riseup.net>2006-03-11 07:22:44 +0000
commit0137962360bd449b4699e06bc9fad6285492f3a9 (patch)
tree71fc3579776994dfeedcd99b046df1e58ee962dc /handlers
parentdc8e99c6c42a6f6bed025132aee37f4a742f6d0d (diff)
downloadbackupninja-0137962360bd449b4699e06bc9fad6285492f3a9.tar.gz
backupninja-0137962360bd449b4699e06bc9fad6285492f3a9.tar.bz2
Fixed the include=/exclude= improper dereference problem in the dup handler
Diffstat (limited to 'handlers')
-rw-r--r--handlers/dup5
1 files changed, 4 insertions, 1 deletions
diff --git a/handlers/dup b/handlers/dup
index 6918702..227ba8b 100644
--- a/handlers/dup
+++ b/handlers/dup
@@ -118,12 +118,14 @@ set -o noglob
# excludes
for i in $exclude; do
+ i=`readlink -f $i`
str="${i//__star__/*}"
execstr="${execstr}--exclude '$str' "
done
# includes
for i in $include; do
+ i=`readlink -f $i`
str="${i//__star__/*}"
execstr="${execstr}--include '$str' "
done
@@ -132,7 +134,8 @@ done
if [ $usevserver = yes ]; then
for vserver in $vsnames; do
for vi in $vsinclude; do
- str="${vi//__star__/*}"
+ i=`readlink -f $VROOTDIR/$vserver$vi`
+ str="${i//__star__/*}"
execstr="${execstr}--include '$VROOTDIR/$vserver$str' "
done
done