dup: Fixed globbing support in include and exclude options (Debian bug #338796)
authorintrigeri <intrigeri@boum.org>
Tue, 29 Nov 2005 11:30:06 +0000 (11:30 +0000)
committerintrigeri <intrigeri@boum.org>
Tue, 29 Nov 2005 11:30:06 +0000 (11:30 +0000)
handlers/dup

index 8d38cfc5996f212a5b1840de7e939ac3c31966a3..79be2fc61fd5f13c078c746fbdd3b63ef43fb4cb 100644 (file)
@@ -105,13 +105,13 @@ execstr_clientpart="/"
 # excludes
 for i in $exclude; do
        str="${i//__star__/*}"
 # excludes
 for i in $exclude; do
        str="${i//__star__/*}"
-       execstr="${execstr}--exclude $str "
+       execstr="${execstr}--exclude '$str' "
 done
        
 # includes 
 for i in $include; do
        str="${i//__star__/*}"
 done
        
 # includes 
 for i in $include; do
        str="${i//__star__/*}"
-       execstr="${execstr}--include $str "
+       execstr="${execstr}--include '$str' "
 done
 
 # vsincludes
 done
 
 # vsincludes