On 2005-05-18 11:40:40 +0200, Paul Slootman wrote:
> Could you reproduce this with a fixed list, i.e. give a script that
> creates the directories and files, generates the list (e.g. with find)
> and then calls rsync?  That might help to make it clear what exactly is
> going wrong...

The following script shows the bug.

#!/bin/zsh

set -e
cd $HOME
mkdir test
cd test
mkdir src d1 d2
mkdir src/dir
mkdir src/dir/dir
touch src/dir/file
touch src/dir/dir/file
cd src
echo dir  | rsync --files-from=- -zuv --progress -e ssh . localhost:test/d1/
echo dir/ | rsync --files-from=- -zuv --progress -e ssh . localhost:test/d2/
cd ..
ls -Fld **/*

I get:

drwxr-xr-x  3 lefevre lefevre 4096 2005-05-19 09:18:29 d1/
drwxr-xr-x  2 lefevre lefevre 4096 2005-05-19 09:18:29 d1/dir/
drwxr-xr-x  3 lefevre lefevre 4096 2005-05-19 09:18:32 d2/
drwxr-xr-x  3 lefevre lefevre 4096 2005-05-19 09:18:32 d2/dir/
drwxr-xr-x  2 lefevre lefevre 4096 2005-05-19 09:18:32 d2/dir/dir/
-rw-r--r--  1 lefevre lefevre    0 2005-05-19 09:18:32 d2/dir/file
drwxr-xr-x  3 lefevre lefevre 4096 2005-05-19 09:18:26 src/
drwxr-xr-x  3 lefevre lefevre 4096 2005-05-19 09:18:26 src/dir/
drwxr-xr-x  2 lefevre lefevre 4096 2005-05-19 09:18:26 src/dir/dir/
-rw-r--r--  1 lefevre lefevre    0 2005-05-19 09:18:26 src/dir/dir/file
-rw-r--r--  1 lefevre lefevre    0 2005-05-19 09:18:26 src/dir/file

So, the problem occurs only when the directory ends with a slash
(this is the case for d2 in the above script).

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to