Skip to content
Snippets Groups Projects
Commit dc8e99c6 authored by micah's avatar micah :speech_balloon:
Browse files

If you include= or exclude= a directory that is actually a symlink

somewhere along the chain you will only backup the symlink, and
not the data, this is fixed here in rdiff with this change
parent c8ebca79
Branches
Tags
No related merge requests found
......@@ -4,6 +4,8 @@ version 0.9.4 -- unreleased
mysql:
. Fixed improper use of $vuserhome (Debian: #351083)
. Fixed erroneous removal of tmpfile when it didn't exit
rdiff:
. Fixed improper include/exclude symlink dereference
lib changes
vserver:
. init_vservers: fixed Debian bug #351083 (improper readlink syntax)
......
......@@ -174,12 +174,14 @@ set -o noglob
# TODO: order the includes and excludes
# 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" != "/" ] || fatal "Sorry, you cannot use 'include = /'"
i=`readlink -f $i`
str="${i//__star__/*}"
execstr="${execstr}--include '$str' "
done
......@@ -188,7 +190,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment