Bump version
[rsync/rsync.git] / testsuite / rsync.fns
index 48851ba..8f8e7d3 100644 (file)
@@ -100,6 +100,7 @@ hands_setup() {
 # Many machines do not have "mkdir -p", so we have to build up long paths.
 # How boring.  
 makepath () {
+    echo "        makepath $1"
     p="$1"
     (
        # Absolut Unix.
@@ -111,8 +112,12 @@ makepath () {
        # This will break if $1 contains a space.
        for c in `echo $p | tr '/' ' '`
        do 
-           [ -d "$c" ] || mkdir "$c" || return $? 
-           cd "$c" || return $?
+           if [ -d "$c" ] || mkdir "$c" 
+           then
+               cd "$c" || return $?
+           else
+               echo "failed to create $c" >&2; return $?
+           fi
        done
     )
 }