dup & rdiff: fixed * expansion in e-mails
[matthijs/upstream/backupninja.git] / handlers / dup
index c16ec40f83da0984973898b4f912596725954144..b4a7c9db3bc722bb15c5ff58007a89d3e02e3e72 100644 (file)
@@ -138,18 +138,19 @@ for i in $exclude; do
    if [ -n "$str" ]; then
       execstr="${execstr}--exclude '$str' "
    else
-      warning "exclude statement ${i//__star__/*} will be ignored. $symlinks_warning"
+      warning "exclude statement '${i//__star__/*}' will be ignored. $symlinks_warning"
    fi
 done
        
 # includes 
 for i in $include; do
+   [ "$i" != "/" ] || fatal "Sorry, you cannot use 'include = /'"
    str="${i//__star__/*}"
    str=`readlink -f $str`
    if [ -n "$str" ]; then
       execstr="${execstr}--include '$str' "
    else
-      warning "include statement ${i//__star__/*} will be ignored. $symlinks_warning"
+      warning "include statement '${i//__star__/*}' will be ignored. $symlinks_warning"
    fi
 done
 
@@ -162,7 +163,7 @@ if [ $usevserver = yes ]; then
          if [ -n "$str" ]; then
            execstr="${execstr}--include '$str' "
          else
-            warning "vsinclude statement ${vi//__star__/*} will be ignored for VServer $vserver. $symlinks_warning"
+            warning "vsinclude statement '${vi//__star__/*}' will be ignored for VServer $vserver. $symlinks_warning"
          fi
       done
    done